registerHandler
public PacketEntityInteractionManager.Registration registerHandler(int entityId, PacketEntityInteractionManager.InteractionHandler handler)
Registers a general interaction handler for a client-targetable entity ID.
The returned registration owns exactly the entry created by this call. Closing an older registration after the same numeric ID has been reused therefore cannot remove the replacement.
Return
lifecycle registration for this exact mapping
Parameters
entityId
entity ID sent by the client
handler
handler receiving the player and whether the click was an attack