API reference / @jsprismarine/prismarine / world/chunk/ChunkGeneration
world/chunk/ChunkGeneration
Interfaces
ChunkGeneration
Defined in: packages/prismarine/src/world/chunk/ChunkGeneration.ts:13
A chunk's generation stamp.
Properties
blending?
readonlyoptionalblending?:PackedBlendingData
Defined in: packages/prismarine/src/world/chunk/ChunkGeneration.ts:17
Java's blending_data: present when the chunk is old generation, with the area it covers.
dataVersion
readonlydataVersion:number
Defined in: packages/prismarine/src/world/chunk/ChunkGeneration.ts:15
The Java DataVersion the chunk was last saved under, 0 for a chunk that had none.
Variables
CURRENT_GENERATION
constCURRENT_GENERATION:ChunkGeneration
Defined in: packages/prismarine/src/world/chunk/ChunkGeneration.ts:21
The stamp of a chunk this server's generator just made.
Functions
isOldGeneration()
isOldGeneration(
generation):boolean
Defined in: packages/prismarine/src/world/chunk/ChunkGeneration.ts:28
Whether a stamp marks old generation, Java's ChunkAccess.isOldNoiseGeneration.
Parameters
generation
Returns
boolean
Java Source
ChunkAccess.isOldNoiseGeneration