PacketEntityInteractionManager
Manages interactions for client-targetable entity IDs. Packet-only entities keep their legacy lookup while other interaction owners can register aliases.
Types
Functions
Link copied to clipboard
Captures the exact interaction mapping currently registered for an entity ID.
Link copied to clipboard
Gets a packet entity by its entity ID.
Link copied to clipboard
Link copied to clipboard
Handles an interaction packet from a player.
Handles a decoded interaction immediately while preserving its action and hand.
Link copied to clipboard
Returns whether any interaction owner is registered for this entity ID.
Link copied to clipboard
Registers a packet entity for interaction tracking.
Link copied to clipboard
public PacketEntityInteractionManager.Registration registerContextHandler(int entityId, PacketEntityInteractionManager.ContextualInteractionHandler handler)
Registers a contextual handler that routes and consumes every interaction.
public PacketEntityInteractionManager.Registration registerContextHandler(int entityId, PacketEntityInteractionManager.InteractionRoutingPolicy routingPolicy, PacketEntityInteractionManager.ContextualInteractionHandler handler)
Registers a contextual handler with packet-routing policy.
Link copied to clipboard
public PacketEntityInteractionManager.Registration registerHandler(int entityId, PacketEntityInteractionManager.InteractionHandler handler)
Registers a general interaction handler for a client-targetable entity ID.
Link copied to clipboard
Unregisters a packet entity from interaction tracking.