Skip to content

@pumpkin-plugins/dynamic-lights-pumpkin API / lights/journal / LightRecoveryWorld

Interface: LightRecoveryWorld ​

Defined in: packages/dynamic-lights-pumpkin/src/lights/journal.ts:22

The world operations needed to recover lights written by older plugin versions.

Properties ​

id ​

readonly id: string

Defined in: packages/dynamic-lights-pumpkin/src/lights/journal.ts:24

Identifies this world for recovery bookkeeping.

Methods ​

getBlockLight() ​

getBlockLight(position): number

Defined in: packages/dynamic-lights-pumpkin/src/lights/journal.ts:26

Returns the current server block-light level at a position.

Parameters ​

position ​

BlockPosition

Returns ​

number


setBlockLight() ​

setBlockLight(position, level): void

Defined in: packages/dynamic-lights-pumpkin/src/lights/journal.ts:28

Restores a server block-light level at a position.

Parameters ​

position ​

BlockPosition

level ​

number

Returns ​

void

Pumpkin Plugins documentation