Gets called when the mouse is clicked.
CancellableEvent
cancel(): void
void
Cancels the event.
Returns
Inherited from
CancellableEvent.cancel
cancel
getButton(): string
string
Gets the button that was clicked.
the type of MouseClickedEvent can be: LEFT, RIGHT, or HOLD_LEFT
isCancelled(): boolean
boolean
If the event is cancelled or not.
CancellableEvent.isCancelled
isCancelled
Last updated 3 months ago