API reference / @jsprismarine/chunkgen / ChunkStepOutOfOrderError
Class: ChunkStepOutOfOrderError
Defined in: ChunkHolder.ts:22
Raised when a holder is asked for a status whose parent it has never started.
Java throws IllegalStateException("Unexpected last startedWork status") from GenerationChunkHolder.acquireStatusBump for the same reason: the ladder is climbed one rung at a time, so a request that skips a rung is a scheduler bug rather than a request to catch up.
Extends
Constructors
Constructor
new ChunkStepOutOfOrderError(
chunkX,chunkZ,requested,started):ChunkStepOutOfOrderError
Defined in: ChunkHolder.ts:25
Parameters
chunkX
number
chunkZ
number
requested
"empty" | "structure_starts" | "structure_references" | "biomes" | "terrain" | "features" | "initialize_light" | "light" | "spawn" | "full"
The status that was asked for.
started
"empty" | "structure_starts" | "structure_references" | "biomes" | "terrain" | "features" | "initialize_light" | "light" | "spawn" | "full" | undefined
The highest status the holder has started, or undefined when it has started none.
Returns
ChunkStepOutOfOrderError
Overrides
Error.constructor
Properties
chunkX
readonlychunkX:number
Defined in: ChunkHolder.ts:26
chunkZ
readonlychunkZ:number
Defined in: ChunkHolder.ts:27
name
name:
string='ChunkStepOutOfOrderError'
Defined in: ChunkHolder.ts:23
Overrides
Error.name
requested
readonlyrequested:"empty"|"structure_starts"|"structure_references"|"biomes"|"terrain"|"features"|"initialize_light"|"light"|"spawn"|"full"
Defined in: ChunkHolder.ts:29
The status that was asked for.
started
readonlystarted:"empty"|"structure_starts"|"structure_references"|"biomes"|"terrain"|"features"|"initialize_light"|"light"|"spawn"|"full"|undefined
Defined in: ChunkHolder.ts:31
The highest status the holder has started, or undefined when it has started none.