setLeftClickCallback

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

Sets a callback to be invoked when a player left-clicks (attacks) this interaction entity.

Parameters

callback

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