Skip to content

@pumpkin-plugins/dynamic-lights-pumpkin API / platform/pumpkin-light-world / PumpkinLightWorld

Class: PumpkinLightWorld ​

Defined in: packages/dynamic-lights-pumpkin/src/platform/pumpkin-light-world.ts:6

Adapts Pumpkin's world resource to the operations used by legacy-light recovery.

Implements ​

Properties ​

id ​

readonly id: string

Defined in: packages/dynamic-lights-pumpkin/src/platform/pumpkin-light-world.ts:7

Identifies this world for recovery bookkeeping.

Implementation of ​

LightRecoveryWorld.id

Methods ​

getBlockLight() ​

getBlockLight(position): number

Defined in: packages/dynamic-lights-pumpkin/src/platform/pumpkin-light-world.ts:14

Reads the current temporary-capable block-light level.

Parameters ​

position ​

BlockPosition

Returns ​

number

Implementation of ​

LightRecoveryWorld.getBlockLight


setBlockLight() ​

setBlockLight(position, level): void

Defined in: packages/dynamic-lights-pumpkin/src/platform/pumpkin-light-world.ts:19

Sets light without replacing the block at this position.

Parameters ​

position ​

BlockPosition

level ​

number

Returns ​

void

Implementation of ​

LightRecoveryWorld.setBlockLight

Pumpkin Plugins documentation