Skip to content

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? ​

readonly optional blending?: 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 ​

readonly dataVersion: 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 ​

const CURRENT_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 ​

ChunkGeneration

Returns ​

boolean

Java Source ​

ChunkAccess.isOldNoiseGeneration