MCEvent

The event is not cancelable.

The event does not have a result.

Diese Klasse importieren

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.

import crafttweaker.api.event.MCEvent;

Methoden

cancel

Cancels the event. Same as setCanceled(true)

Return Type: void

MCEvent.cancel() as void
myMCEvent.cancel();

hasResult

Return Type: boolean

MCEvent.hasResult() as boolean
myMCEvent.hasResult();

isCancelable

Return Type: boolean

MCEvent.isCancelable() as boolean
myMCEvent.isCancelable();

isCanceled

Return Type: boolean

MCEvent.isCanceled() as boolean
myMCEvent.isCanceled();

setAllow

sets the event's result to allow

Return Type: void

MCEvent.setAllow() as void
myMCEvent.setAllow();

setCanceled

Return Type: void

MCEvent.setCanceled(cancel as boolean) as void
ParameterTypeBeschreibung
cancelbooleanNo Description Provided

setDefault

sets the event's result to default

Return Type: void

MCEvent.setDefault() as void
myMCEvent.setDefault();

setDeny

sets the event's result to deny

Return Type: void

MCEvent.setDeny() as void
myMCEvent.setDeny();

Properties

NameTypeHas GetterHas Setter
cancelablebooleantruefalse
canceledbooleantruetrue
hasResultbooleantruefalse