The type of the property
ReadonlybatchInterval between flushes, expressed in milliseconds.
Signal that fires when the property changes. Should only be used on the client since the server does not listen for changes.
ReadonlyclassClass name of the packet, used for debugging purposes.
OptionalperMap of player to their property value
ReadonlysignalSignalPacket used to send the property
Clears the value of the property for players that pass the predicate. Should only be used on the server.
The predicate to filter players
Clears the value of the property for a specific player. Should only be used on the server.
The player to clear the value for
Clears the value of the property for a list of players. Should only be used on the server.
The list of players to clear the value for
Cleans up any resources used by the packet.
Returns the current value of the property.
Optionalplayer: PlayerThe player to get the value for. Does nothing on the client.
The current value of the property
Observes the property for changes. Triggers the handler after each flush.
The handler to call when the property changes
A connection that can be disconnected to stop observing the property
Sets the value of the property. This will clear the perPlayer map and broadcast the value to all players after the batch interval. Should only be used on the server.
The new value of the property
Sets the value of the property for players that pass the predicate. Should only be used on the server.
The predicate to filter players
The new value of the property
Sets the value of the property for a specific player. Should only be used on the server.
The player to set the value for
The new value of the property
Sets the value of the property for a list of players. Should only be used on the server.
The list of players to set the value for
The new value of the property
Sets the value of the property for players that do not have a value set. Should only be used on the server.
The new value of the property
StaticsetOverrides the provider used to retrieve players when broadcasting filtered updates. Primarily intended for testing. Passing no provider resets to the default behavior.
Optionalprovider: () => Player[]
BatchedPropertyPacket batches property updates so they are delivered no more than once per interval.