MouseClickedEvent

Gets called when the mouse is clicked.

Extends

Methods

cancel()

cancel(): void

Cancels the event.

Returns

void

Inherited from

CancellableEvent.cancel


getButton()

getButton(): string

Gets the button that was clicked.

Returns

string

the type of MouseClickedEvent can be: LEFT, RIGHT, or HOLD_LEFT


isCancelled()

isCancelled(): boolean

Returns

boolean

If the event is cancelled or not.

Inherited from

CancellableEvent.isCancelled

Last updated