PacketInteractionEntity
Interface for packet-only Interaction entities that can receive player clicks. These entities exist only in packets sent to clients - they are not added to the server world. When players click on them, callbacks are fired.
Functions
Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the underlying Bukkit entity for direct modification.
Link copied to clipboard
Gets the entity ID of this packet entity.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called internally when a player interacts with this packet entity.
Called internally with the exact decoded packet action and hand.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets a left-click callback that receives the decoded interaction context.
Link copied to clipboard
Sets a right-click callback that receives the decoded action and hand.
Link copied to clipboard
Link copied to clipboard
Syncs entity metadata to all viewers.
Link copied to clipboard
Bundled teleport: adds this entity's position update to the given packet bundle instead of sending it directly, so per-tick movers (e.g.