API reference / @jsprismarine/prismarine / GenerationStopped
Class: GenerationStopped
Defined in: prismarine/src/world/Generator.ts:13
How a generator refuses a chunk once Generator.stopGenerating has been called.
Its own class so a caller can tell a shutdown apart from a chunk that genuinely could not be generated. Those are the same Error otherwise, and the start region has to report one and re-throw the other.
Extends
Constructors
Constructor
new GenerationStopped(
cx,cz):GenerationStopped
Defined in: prismarine/src/world/Generator.ts:18
Parameters
cx
number
Chunk x of the request that was refused.
cz
number
Chunk z of the request that was refused.
Returns
GenerationStopped
Overrides
Error.constructor