PacketEntityInteractionManager

Manages interactions for client-targetable entity IDs. Packet-only entities keep their legacy lookup while other interaction owners can register aliases.

Types

Link copied to clipboard
@FunctionalInterface()
public interface ContextualInteractionHandler
Link copied to clipboard
public final class Dispatch
Link copied to clipboard
@FunctionalInterface()
public interface InteractionHandler
Link copied to clipboard
@FunctionalInterface()
public interface InteractionRoutingPolicy
Link copied to clipboard
public final class PreparedInteraction
Link copied to clipboard
public final class Registration implements AutoCloseable
Link copied to clipboard
public enum RoutingDecision

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Captures the exact interaction mapping currently registered for an entity ID.
Link copied to clipboard
public PacketEntityInterface getByEntityId(int entityId)
Gets a packet entity by its entity ID.
Link copied to clipboard
Link copied to clipboard
public boolean handleInteraction(Player player, int entityId, boolean isAttack)
Handles an interaction packet from a player.
public boolean handleInteraction(Player player, int entityId, PacketInteractionContext context)
Handles a decoded interaction immediately while preserving its action and hand.
Link copied to clipboard
public boolean isRegistered(int entityId)
Returns whether any interaction owner is registered for this entity ID.
Link copied to clipboard
public void register(int entityId, PacketEntityInterface entity)
Registers a packet entity for interaction tracking.
Link copied to clipboard
Registers a contextual handler that routes and consumes every interaction.
Registers a contextual handler with packet-routing policy.
Link copied to clipboard
Registers a general interaction handler for a client-targetable entity ID.
Link copied to clipboard
public void shutdown()
Clears all registered entities.
Link copied to clipboard
public void unregister(int entityId)
Unregisters a packet entity from interaction tracking.