MCEvent
The event is not cancelable.
The event does not have a result.
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Methods
Cancels the event. Same as setCanceled(true)
Return Type: void
Return Type: boolean
Return Type: boolean
Return Type: boolean
sets the event’s result to allow
Return Type: void
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter cancel | Type boolean | Description No Description Provided |
sets the event’s result to default
Return Type: void
sets the event’s result to deny
Return Type: void
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name cancelable | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name canceled | Type boolean | Has Getter true | Has Setter true | Description No Description Provided |
Name hasResult | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |