Skip to content

API reference / @jsprismarine/prismarine / world/generators/datadriven/chunkPipeline

world/generators/datadriven/chunkPipeline ​

Classes ​

Interfaces ​

ChunkPipelineSetup ​

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:55

What a worker is handed once, to build its generator from.

Nothing here names a dimension or its settings. Those travel with every task as a PipelineKey, which is what lets one pool serve every dimension of a server.

Properties ​

carve? ​

readonly optional carve?: boolean

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:61

Whether the carvers run, which is part of Java's terrain status.

javaTemplates? ​

readonly optional javaTemplates?: boolean

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:65

Whether to load the standard Java jar templates. Defaults to true for whole chunks.

registryBundle ​

readonly registryBundle: SharedArrayBuffer

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:57

The registries as bytes, shared rather than copied to each worker.

sharedClimateParameters? ​

readonly optional sharedClimateParameters?: ReadonlyMap<string, SharedArrayBuffer>

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:59

Prebuilt read-only climate trees, keyed by biome-source preset.

sharedTerrainRegistryFingerprint? ​

readonly optional sharedTerrainRegistryFingerprint?: string

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:69

Registry identity computed once by the parent and included in tile keys.

sharedTerrainTileStoreBuffer? ​

readonly optional sharedTerrainTileStoreBuffer?: SharedArrayBuffer

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:67

Shared immutable terrain tiles, when the parent opted into the bounded cache.

structures? ​

readonly optional structures?: boolean

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:63

Whether the decoration pass includes structure placement. Defaults to true.

terrainTileBuildStats? ​

readonly optional terrainTileBuildStats?: SharedArrayBuffer

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:71

Optional counter for measuring actual terrain tile builds across workers.


ChunkTaskInput ​

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:81

What every chunk task carries: the key the worker compiles its pipeline from and the seed, as a string because a bigint does not clone.

The key's dimension is the bounds and ids record, not the whole type, so a task clones a few numbers rather than the Java definition behind the dimension.

Extends ​

Extended by ​

Properties ​

biomeSource ​

readonly biomeSource: BiomeSourceDefinition

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:525

The biome layout, as the stem's biome_source describes it.

Inherited from ​

PipelineKey.biomeSource

dimension ​

readonly dimension: PipelineDimension

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527

The dimension whose bounds every chunk of this key takes.

Inherited from ​

PipelineKey.dimension

inlineNoiseSettings? ​

readonly optional inlineNoiseSettings?: Readonly<Record<string, unknown>>

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:523

The document PipelineKey.noiseSettings stands for when the stem carried its settings inline instead of naming a registered id.

Part of the key because the workers' registries are bundled when the pool opens, which may be before a lazily loaded dimension is built; the first task that names an inline id registers it where it runs.

Inherited from ​

PipelineKey.inlineNoiseSettings

noiseSettings ​

readonly noiseSettings: string

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514

The worldgen/noise_settings identifier.

Inherited from ​

PipelineKey.noiseSettings

seed ​

readonly seed: string

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:83

The world seed as a decimal string, because a bigint does not survive every clone.


FeatureTaskInput ​

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:97

What a features task carries besides its key and seed: the nine immutable terrain tiles it reads.

Extends ​

Properties ​

biomeSource ​

readonly biomeSource: BiomeSourceDefinition

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:525

The biome layout, as the stem's biome_source describes it.

Inherited from ​

ChunkTaskInput.biomeSource

blending? ​

readonly optional blending?: readonly OldChunkRecord[]

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:101

The old chunks within the blender's reach of the view, when the save holds any.

dimension ​

readonly dimension: PipelineDimension

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527

The dimension whose bounds every chunk of this key takes.

Inherited from ​

ChunkTaskInput.dimension

inlineNoiseSettings? ​

readonly optional inlineNoiseSettings?: Readonly<Record<string, unknown>>

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:523

The document PipelineKey.noiseSettings stands for when the stem carried its settings inline instead of naming a registered id.

Part of the key because the workers' registries are bundled when the pool opens, which may be before a lazily loaded dimension is built; the first task that names an inline id registers it where it runs.

Inherited from ​

ChunkTaskInput.inlineNoiseSettings

noiseSettings ​

readonly noiseSettings: string

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514

The worldgen/noise_settings identifier.

Inherited from ​

ChunkTaskInput.noiseSettings

seed ​

readonly seed: string

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:83

The world seed as a decimal string, because a bigint does not survive every clone.

Inherited from ​

ChunkTaskInput.seed

structureStartPlans? ​

readonly optional structureStartPlans?: readonly StructureStartPlanEntry[]

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:106

Every structure start candidate whose pieces could reach the chunk, laid out by the thread that owns the starts, so the worker places pieces without assembling the structures again.

terrain ​

readonly terrain: readonly GenerationRegionPayload[]

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:99

Terrain payloads in the feature view's row-major offset order.


FullChunkTaskInput ​

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:92

A whole-chunk task may carry cloneable plans made by stable owner shards.

Extends ​

Properties ​

biomeSource ​

readonly biomeSource: BiomeSourceDefinition

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:525

The biome layout, as the stem's biome_source describes it.

Inherited from ​

ChunkTaskInput.biomeSource

dimension ​

readonly dimension: PipelineDimension

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527

The dimension whose bounds every chunk of this key takes.

Inherited from ​

ChunkTaskInput.dimension

inlineNoiseSettings? ​

readonly optional inlineNoiseSettings?: Readonly<Record<string, unknown>>

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:523

The document PipelineKey.noiseSettings stands for when the stem carried its settings inline instead of naming a registered id.

Part of the key because the workers' registries are bundled when the pool opens, which may be before a lazily loaded dimension is built; the first task that names an inline id registers it where it runs.

Inherited from ​

ChunkTaskInput.inlineNoiseSettings

noiseSettings ​

readonly noiseSettings: string

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514

The worldgen/noise_settings identifier.

Inherited from ​

ChunkTaskInput.noiseSettings

seed ​

readonly seed: string

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:83

The world seed as a decimal string, because a bigint does not survive every clone.

Inherited from ​

ChunkTaskInput.seed

structureStartPlans? ​

readonly optional structureStartPlans?: readonly StructureStartPlanEntry[]

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:93


MergedChunkTaskInput ​

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:113

What a merged full task carries: the chunk's terrain tile, its own feature writes and the eight inbound patches in merge order, and the Bedrock form of every block among them.

Extends ​

Properties ​

biomeSource ​

readonly biomeSource: BiomeSourceDefinition

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:525

The biome layout, as the stem's biome_source describes it.

Inherited from ​

ChunkTaskInput.biomeSource

dimension ​

readonly dimension: PipelineDimension

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527

The dimension whose bounds every chunk of this key takes.

Inherited from ​

ChunkTaskInput.dimension

inbound ​

readonly inbound: readonly PackedRegionChunkPatch[]

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:119

The patches its neighbors' passes wrote into it, in FEATURE_PATCH_ORDER.

inboundBeforeOwn ​

readonly inboundBeforeOwn: number

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:121

How many of inbound go in before own; see MergeInputs.inboundBeforeOwn.

inlineNoiseSettings? ​

readonly optional inlineNoiseSettings?: Readonly<Record<string, unknown>>

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:523

The document PipelineKey.noiseSettings stands for when the stem carried its settings inline instead of naming a registered id.

Part of the key because the workers' registries are bundled when the pool opens, which may be before a lazily loaded dimension is built; the first task that names an inline id registers it where it runs.

Inherited from ​

ChunkTaskInput.inlineNoiseSettings

kind ​

readonly kind: "merged-chunk"

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:114

noiseSettings ​

readonly noiseSettings: string

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514

The worldgen/noise_settings identifier.

Inherited from ​

ChunkTaskInput.noiseSettings

own? ​

readonly optional own?: PackedRegionChunkPatch

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:117

The chunk's own feature writes, absent when its pass wrote nothing into itself.

seed ​

readonly seed: string

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:83

The world seed as a decimal string, because a bigint does not survive every clone.

Inherited from ​

ChunkTaskInput.seed

terrain ​

readonly terrain: GenerationRegionPayload

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:115

translation ​

readonly translation: PaletteTranslation

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:122


StructureStartTaskInput ​

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:87

Candidates a stable owner shard should build before a chunk task begins.

Extends ​

Properties ​

biomeSource ​

readonly biomeSource: BiomeSourceDefinition

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:525

The biome layout, as the stem's biome_source describes it.

Inherited from ​

ChunkTaskInput.biomeSource

candidates ​

readonly candidates: readonly StructureStartCandidate[]

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:88

dimension ​

readonly dimension: PipelineDimension

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527

The dimension whose bounds every chunk of this key takes.

Inherited from ​

ChunkTaskInput.dimension

inlineNoiseSettings? ​

readonly optional inlineNoiseSettings?: Readonly<Record<string, unknown>>

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:523

The document PipelineKey.noiseSettings stands for when the stem carried its settings inline instead of naming a registered id.

Part of the key because the workers' registries are bundled when the pool opens, which may be before a lazily loaded dimension is built; the first task that names an inline id registers it where it runs.

Inherited from ​

ChunkTaskInput.inlineNoiseSettings

noiseSettings ​

readonly noiseSettings: string

Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514

The worldgen/noise_settings identifier.

Inherited from ​

ChunkTaskInput.noiseSettings

seed ​

readonly seed: string

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:83

The world seed as a decimal string, because a bigint does not survive every clone.

Inherited from ​

ChunkTaskInput.seed

Functions ​

createGenerationPipeline() ​

createGenerationPipeline(setup): WorkerPipeline

Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:297

Builds this worker's generator.

Called once per worker. Everything expensive lives here: parsing the shared registries, the density graph and the structure template store. The 7594-entry climate biome source and the noise tables follow with the first task of each key and seed.

Parameters ​

setup ​

unknown

What the pool was built with.

Returns ​

WorkerPipeline

The pipeline the pool drives.

Throws ​

TypeError when the setup is not a generation pipeline's.