onInteract

abstract fun onInteract(handler: InteractDsl.() -> InteractionResult)

Registers a handler called on the main server thread when a player interacts with this entity (right click).