setRightClickCallback

Sets a callback that is triggered when the entity is right-clicked by a player.

Return

the current ModeledEntity instance, allowing for method chaining

Parameters

callback

the ModeledEntityRightClickCallback to execute when the entity is right-clicked