register Player Interact
Registers a new trigger that runs before the player interacts.
In 1.8.9, the following events will activate this trigger:
Right clicking a block
Right clicking the air
In 1.12.2, the following events will activate this trigger:
Left clicking a block
Left clicking air
Right clicking an entity
Right clicking a block
Right clicking an item
Right clicking air
Passes through three arguments:
The position of the target as a Vector3f
The event, which can be cancelled
Available modifications:
Trigger.setPriority Sets the priority
Return
The trigger for additional modification
Parameters
method
The method to call when the event is fired