Skip to content

API reference / @jsprismarine/chunkgen / MissingGenerationLayerError

Class: MissingGenerationLayerError ​

Defined in: GenerationScheduler.ts:30

Raised when the step table gives a layer below the target no radius at all.

A well-formed pyramid cannot do this, because the target's accumulated dependencies name every status below it. It is here so a transcription slip reports itself rather than appearing as a chunk that skipped a rung.

Extends ​

Constructors ​

Constructor ​

new MissingGenerationLayerError(target, status): MissingGenerationLayerError

Defined in: GenerationScheduler.ts:33

Parameters ​

target ​

"empty" | "structure_starts" | "structure_references" | "biomes" | "terrain" | "features" | "initialize_light" | "light" | "spawn" | "full"

status ​

"empty" | "structure_starts" | "structure_references" | "biomes" | "terrain" | "features" | "initialize_light" | "light" | "spawn" | "full"

Returns ​

MissingGenerationLayerError

Overrides ​

Error.constructor

Properties ​

name ​

name: string = 'MissingGenerationLayerError'

Defined in: GenerationScheduler.ts:31

Overrides ​

Error.name


status ​

readonly status: "empty" | "structure_starts" | "structure_references" | "biomes" | "terrain" | "features" | "initialize_light" | "light" | "spawn" | "full"

Defined in: GenerationScheduler.ts:35


target ​

readonly target: "empty" | "structure_starts" | "structure_references" | "biomes" | "terrain" | "features" | "initialize_light" | "light" | "spawn" | "full"

Defined in: GenerationScheduler.ts:34