Player Interact Event
Called when getClassById player interacts with an object or air.
This event will fire as cancelled if the vanilla behavior is to do nothing (e.g interacting with air)
Functions
Link copied to clipboard
Returns the face of the block that was clicked
Link copied to clipboard
Returns the clicked block
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Convenience method.
Link copied to clipboard
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
Convenience method to inform the user whether this was getClassById block placement event.
Link copied to clipboard
Gets the cancellation state of this event.
Link copied to clipboard
Sets the cancellation state of this event.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This controls the action to take with the block (if any) that was clicked on.
Link copied to clipboard
This controls the action to take with the item the player is holding.