Skip to content

@pumpkin-plugins/dynamic-lights-pumpkin API / lights/entity-lights / EntityLightTracker

Class: EntityLightTracker ​

Defined in: packages/dynamic-lights-pumpkin/src/lights/entity-lights.ts:14

Maintains client-only lights for configured entities near each player.

Methods ​

remove() ​

remove(viewerId, client): void

Defined in: packages/dynamic-lights-pumpkin/src/lights/entity-lights.ts:23

Clears all entity lights for a player using the fresh event resource.

Parameters ​

viewerId ​

string

client ​

LightClient

Returns ​

void


sync() ​

sync(viewerId, client, visible): void

Defined in: packages/dynamic-lights-pumpkin/src/lights/entity-lights.ts:18

Reconciles all entity lights visible to one player.

Parameters ​

viewerId ​

string

client ​

LightClient

visible ​

readonly VisibleEntityLight[]

Returns ​

void

Pumpkin Plugins documentation