Skip to content

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 ​

readonly code: "PRISMARINE_GENERATION_STOPPED" = 'PRISMARINE_GENERATION_STOPPED'

Defined in: packages/errors/src/prismarine/world.ts:4018

Inherited from ​

PrismarineWorldErrors.GenerationStopped.code


docs ​

readonly docs: "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 static code(): "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 static docs(): "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 static domain(): "prismarine"

Defined in: packages/errors/src/prismarine/world.ts:4005

Returns ​

"prismarine"

Inherited from ​

PrismarineWorldErrors.GenerationStopped.domain


module ​

Get Signature ​

get static module(): "world"

Defined in: packages/errors/src/prismarine/world.ts:4008

Returns ​

"world"

Inherited from ​

PrismarineWorldErrors.GenerationStopped.module


template ​

Get Signature ​

get static template(): "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