ICancellableEvent
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.neoforge.api.event.ICancellableEvent;Members
cancel()
Cancels the event. Same as script.zs
setCanceled(true)// ICancellableEvent.cancel();myICancellableEvent.cancel();Getter
// ICancellableEvent.canceled as boolmyICancellableEvent.canceled
Return Type:
bool
Setter
// ICancellableEvent.canceled = (cancel as bool);myICancellableEvent.canceled = myBool;Parameters:
cancel: bool Type: bool canceled() as bool
// ICancellableEvent.canceled() as bool;myICancellableEvent.canceled();
Return Type:
bool
canceled(cancel as bool)
// ICancellableEvent.canceled(cancel as bool);myICancellableEvent.canceled(myBool);Parameters:
cancel: bool Type: bool