setRightClickCallback

public abstract void setRightClickCallback(BiConsumer<Player, PacketEntityInterface> callback)

Sets a callback to be invoked when a player right-clicks this interaction entity.

Parameters

callback

The callback receiving the player and this entity, or null to remove