API reference / @jsprismarine/prismarine / world/Generator / GenerationStopped
Class: GenerationStopped
Defined in: packages/prismarine/src/world/Generator.ts:15
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
GenerationStopped
Constructors
Constructor
new GenerationStopped(
cx,cz):GenerationStopped
Defined in: packages/prismarine/src/world/Generator.ts:20
Parameters
cx
number
Chunk x of the request that was refused.
cz
number
Chunk z of the request that was refused.
Returns
GenerationStopped
Overrides
PrismarineWorldErrors.GenerationStopped.constructor
Properties
code
readonlycode:"PRISMARINE_GENERATION_STOPPED"='PRISMARINE_GENERATION_STOPPED'
Defined in: packages/errors/src/prismarine/world.ts:4018
Inherited from
PrismarineWorldErrors.GenerationStopped.code
docs
readonlydocs:"https://jsprismarine.dev/errors/prismarine/world#prismarine-generation-stopped"='https://jsprismarine.dev/errors/prismarine/world#prismarine-generation-stopped'
Defined in: packages/errors/src/prismarine/world.ts:4019
Inherited from
PrismarineWorldErrors.GenerationStopped.docs
Accessors
[cataloged]
Get Signature
get [cataloged]():
true
Defined in: packages/errors/src/JSPrismarineError.ts:40
Returns
true
Inherited from
PrismarineWorldErrors.GenerationStopped.[cataloged]
params
Get Signature
get params():
object&Readonly<Record<string,unknown>>
Defined in: packages/errors/src/prismarine/world.ts:4031
The placeholder values the message was built from.
Returns
object & Readonly<Record<string, unknown>>
Inherited from
PrismarineWorldErrors.GenerationStopped.params
code
Get Signature
get
staticcode():"PRISMARINE_GENERATION_STOPPED"
Defined in: packages/errors/src/prismarine/world.ts:4002
Returns
"PRISMARINE_GENERATION_STOPPED"
Inherited from
PrismarineWorldErrors.GenerationStopped.code
docs
Get Signature
get
staticdocs():"https://jsprismarine.dev/errors/prismarine/world#prismarine-generation-stopped"
Defined in: packages/errors/src/prismarine/world.ts:4014
Returns
"https://jsprismarine.dev/errors/prismarine/world#prismarine-generation-stopped"
Inherited from
PrismarineWorldErrors.GenerationStopped.docs
domain
Get Signature
get
staticdomain():"prismarine"
Defined in: packages/errors/src/prismarine/world.ts:4005
Returns
"prismarine"
Inherited from
PrismarineWorldErrors.GenerationStopped.domain
module
Get Signature
get
staticmodule():"world"
Defined in: packages/errors/src/prismarine/world.ts:4008
Returns
"world"
Inherited from
PrismarineWorldErrors.GenerationStopped.module
template
Get Signature
get
statictemplate():"Chunk {cx},{cz} was not generated: the generator has stopped"
Defined in: packages/errors/src/prismarine/world.ts:4011
Returns
"Chunk {cx},{cz} was not generated: the generator has stopped"
Inherited from
PrismarineWorldErrors.GenerationStopped.template