PacketEntity
A packet-only entity that is spawned, updated, and removed by sending packets to players.
val display = packetItemDisplay {
location by player.location
metadata {
itemStack by item
}
}
display.spawn()Type Parameters
the metadata API type for this entity.
Properties
Handlers that are called on the player's Netty event-loop thread when they attack this entity (left click).
Handlers that are called on the main thread when a player attacks this entity (left click).
Handlers that are called on the main thread whenever this entity stops being visible to a player.
The mutable equipment of this node.
Handlers that are called on the player's Netty event-loop thread when they interact with this entity (right click).
Handlers that are called on the main thread when a player interacts with this entity (right click).
The direct passengers mounted on this entity.
Handlers that are called on the player's Netty event-loop thread when they pick this entity (middle click).
Handlers that are called on the main thread whenever this entity becomes visible to a player.
The set of players that must not see this entity.
The optional whitelist of players that may see this entity.
The visibility of this entity.
Functions
Updates location by applying modifyLocation to a clone of the current location.