@pumpkin-plugins/dynamic-lights-pumpkin API / lights/client-light / ClientLightTracker
Class: ClientLightTracker
Defined in: packages/dynamic-lights-pumpkin/src/lights/client-light.ts:61
Maintains client-only light blocks without ever changing the server world.
Methods
clear()
clear():
void
Defined in: packages/dynamic-lights-pumpkin/src/lights/client-light.ts:121
Forgets all temporary client lights when the server unloads the plugin.
Returns
void
forget()
forget(
playerId):void
Defined in: packages/dynamic-lights-pumpkin/src/lights/client-light.ts:116
Forgets a previous client world without sending its block positions into the new world.
Parameters
playerId
string
Returns
void
remove()
remove(
playerId,client):void
Defined in: packages/dynamic-lights-pumpkin/src/lights/client-light.ts:105
Clears one player's temporary client light.
Parameters
playerId
string
client
Returns
void
replaceSources()
replaceSources(
playerId,client,group,sources):void
Defined in: packages/dynamic-lights-pumpkin/src/lights/client-light.ts:72
Reconciles one source group, keeping the brightest source in every occupied cell.
Parameters
playerId
string
client
group
string
sources
readonly PositionedLight[]
Returns
void
reset()
reset(
playerId,client):void
Defined in: packages/dynamic-lights-pumpkin/src/lights/client-light.ts:110
Restores all client blocks for a player who disables lights or unloads the plugin.
Parameters
playerId
string
client
Returns
void
sync()
sync(
playerId,client,position,level):void
Defined in: packages/dynamic-lights-pumpkin/src/lights/client-light.ts:67
Updates one player's temporary light, or clears it when the light level is zero.
Parameters
playerId
string
client
position
level
number
Returns
void