handleInteraction

public boolean handleInteraction(Player player, int entityId, boolean isAttack)

Handles an interaction packet from a player. Called by the packet interceptor when a ServerboundInteractPacket is received.

Return

true if the interaction was handled by a registered owner, false otherwise

Parameters

player

The player who sent the interaction

entityId

The entity ID being interacted with

isAttack

True if this was an attack action, false if interact


public boolean handleInteraction(Player player, int entityId, PacketInteractionContext context)

Handles a decoded interaction immediately while preserving its action and hand.