addRightClickHandler

fun addRightClickHandler(handler: R)

Adds a handler to this Hitbox that is called when a player right-clicks the hitbox.

The handler is invoked only when protection integrations allow the player to use the block at the hit position.