Abstract
Abstract
Readonly
classClass name of the packet, used for debugging purposes.
Abstract
clearClears the map.
Clears the value of the property for players that pass the predicate. Should only be used on the server.
The predicate to filter players
Abstract
clearClears the map for a specific player.
The player for whom to clear the map.
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
Abstract
deleteRemoves an entry from the map if present.
The key of the entry to remove.
True if the entry was present and removed, false otherwise.
Abstract
destroyCleans up any resources used by the packet.
Abstract
getAbstract
getAbstract
getAbstract
observeObserves the property for changes. Unlike changed, this will fire the handler immediately if the value is already set. Else, it will wait for the value to be set and then fire the handler.
The handler to call when the property changes
A connection that can be disconnected to stop observing the property
Abstract
setAbstract
setAbstract
setSets 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
Abstract
setSets 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
AbstractMapPropertyPacket provides a base class for map-based property packets, defining the essential methods for managing a map of key-value pairs that goes through diff-based updates. It extends AbstractPropertyPacket with a Map<K, V> type.