handle

public boolean handle(Player player, boolean isAttack)

Invokes the captured handler only while its exact mapping is still current.

Return

true when the captured mapping handled the interaction


public boolean handle(Player player, PacketInteractionContext context)

Invokes the captured handler directly with decoded packet context.