The event is not cancelable.

The event does not have a result.

Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.neoforge.api.event.Event;

Name: getResult

Return Type: EventResult

ZenScript
Copy
// Event.getResult() as EventResult

myEvent.getResult();

Name: hasResult

Return Type: boolean

ZenScript
Copy
// Event.hasResult() as boolean

myEvent.hasResult();

Name: setAllow

sets the event's result to allow

ZenScript
Copy
// Event.setAllow()

myEvent.setAllow();

Name: setDefault

sets the event's result to default

ZenScript
Copy
// Event.setDefault()

myEvent.setDefault();

Name: setDeny

sets the event's result to deny

ZenScript
Copy
// Event.setDeny()

myEvent.setDeny();

Name: setResult

ZenScript
Copy
Event.setResult(result as EventResult)
ParameterType
Parameter
result
Type
EventResult
NameTypeHas GetterHas Setter
Name
Type
Event
Has Getter
false
Has Setter
true
Name
hasResult
Type
boolean
Has Getter
true
Has Setter
false
Name
result
Type
EventResult
Has Getter
true
Has Setter
false