@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
readonlyid:string
Defined in: packages/dynamic-lights-pumpkin/src/platform/pumpkin-light-world.ts:7
Identifies this world for recovery bookkeeping.
Implementation of
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
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
level
number
Returns
void