API reference / @jsprismarine/chunkgen / ChunkNotReadyError
Class: ChunkNotReadyError
Defined in: ChunkHolder.ts:46
Raised when a chunk is read at a status it has not reached.
This means the scheduler ran a layer before the layer below it finished. A body that reads a status its own step did not declare raises ChunkReadOutOfWindowError instead.
Extends
Constructors
Constructor
new ChunkNotReadyError(
chunkX,chunkZ,requested,reached):ChunkNotReadyError
Defined in: ChunkHolder.ts:49
Parameters
chunkX
number
chunkZ
number
requested
"empty" | "structure_starts" | "structure_references" | "biomes" | "terrain" | "features" | "initialize_light" | "light" | "spawn" | "full"
The status the reader needs.
reached
"empty" | "structure_starts" | "structure_references" | "biomes" | "terrain" | "features" | "initialize_light" | "light" | "spawn" | "full" | undefined
The status the chunk has reached, or undefined when no status has run on it.
Returns
ChunkNotReadyError
Overrides
Error.constructor
Properties
chunkX
readonlychunkX:number
Defined in: ChunkHolder.ts:50
chunkZ
readonlychunkZ:number
Defined in: ChunkHolder.ts:51
name
name:
string='ChunkNotReadyError'
Defined in: ChunkHolder.ts:47
Overrides
Error.name
reached
readonlyreached:"empty"|"structure_starts"|"structure_references"|"biomes"|"terrain"|"features"|"initialize_light"|"light"|"spawn"|"full"|undefined
Defined in: ChunkHolder.ts:55
The status the chunk has reached, or undefined when no status has run on it.
requested
readonlyrequested:"empty"|"structure_starts"|"structure_references"|"biomes"|"terrain"|"features"|"initialize_light"|"light"|"spawn"|"full"
Defined in: ChunkHolder.ts:53
The status the reader needs.