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?
readonlyoptionalcarve?: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?
readonlyoptionaljavaTemplates?: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
readonlyregistryBundle:SharedArrayBuffer
Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:57
The registries as bytes, shared rather than copied to each worker.
sharedClimateParameters?
readonlyoptionalsharedClimateParameters?: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?
readonlyoptionalsharedTerrainRegistryFingerprint?: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?
readonlyoptionalsharedTerrainTileStoreBuffer?: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?
readonlyoptionalstructures?:boolean
Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:63
Whether the decoration pass includes structure placement. Defaults to true.
terrainTileBuildStats?
readonlyoptionalterrainTileBuildStats?: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
readonlybiomeSource: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
dimension
readonlydimension:PipelineDimension
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527
The dimension whose bounds every chunk of this key takes.
Inherited from
inlineNoiseSettings?
readonlyoptionalinlineNoiseSettings?: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
readonlynoiseSettings:string
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514
The worldgen/noise_settings identifier.
Inherited from
seed
readonlyseed: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
readonlybiomeSource: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
blending?
readonlyoptionalblending?: readonlyOldChunkRecord[]
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
readonlydimension:PipelineDimension
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527
The dimension whose bounds every chunk of this key takes.
Inherited from
inlineNoiseSettings?
readonlyoptionalinlineNoiseSettings?: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
readonlynoiseSettings:string
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514
The worldgen/noise_settings identifier.
Inherited from
seed
readonlyseed: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
structureStartPlans?
readonlyoptionalstructureStartPlans?: readonlyStructureStartPlanEntry[]
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
readonlyterrain: readonlyGenerationRegionPayload[]
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
readonlybiomeSource: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
dimension
readonlydimension:PipelineDimension
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527
The dimension whose bounds every chunk of this key takes.
Inherited from
inlineNoiseSettings?
readonlyoptionalinlineNoiseSettings?: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
readonlynoiseSettings:string
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514
The worldgen/noise_settings identifier.
Inherited from
seed
readonlyseed: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
structureStartPlans?
readonlyoptionalstructureStartPlans?: readonlyStructureStartPlanEntry[]
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
readonlybiomeSource: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
dimension
readonlydimension:PipelineDimension
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527
The dimension whose bounds every chunk of this key takes.
Inherited from
inbound
readonlyinbound: readonlyPackedRegionChunkPatch[]
Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:119
The patches its neighbors' passes wrote into it, in FEATURE_PATCH_ORDER.
inboundBeforeOwn
readonlyinboundBeforeOwn:number
Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:121
How many of inbound go in before own; see MergeInputs.inboundBeforeOwn.
inlineNoiseSettings?
readonlyoptionalinlineNoiseSettings?: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
readonlykind:"merged-chunk"
Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:114
noiseSettings
readonlynoiseSettings:string
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514
The worldgen/noise_settings identifier.
Inherited from
own?
readonlyoptionalown?: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
readonlyseed: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
terrain
readonlyterrain:GenerationRegionPayload
Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:115
translation
readonlytranslation: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
readonlybiomeSource: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
candidates
readonlycandidates: readonlyStructureStartCandidate[]
Defined in: packages/prismarine/src/world/generators/datadriven/chunkPipeline.ts:88
dimension
readonlydimension:PipelineDimension
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:527
The dimension whose bounds every chunk of this key takes.
Inherited from
inlineNoiseSettings?
readonlyoptionalinlineNoiseSettings?: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
readonlynoiseSettings:string
Defined in: packages/prismarine/src/world/generators/datadriven/DataDrivenGenerator.ts:514
The worldgen/noise_settings identifier.
Inherited from
seed
readonlyseed: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
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
The pipeline the pool drives.
Throws
TypeError when the setup is not a generation pipeline's.