registerHitBlock

open fun registerHitBlock(method: Any): EventTrigger

Registers a new trigger that runs whenever a block is left clicked

Note: this is not continuously called while the block is being broken, only once when first left clicked.

Passes through two arguments:

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard