LevelTickEvent

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.

script.zs
import crafttweaker.neoforge.api.event.tick.LevelTickEvent;

Extends

LevelTickEvent extends Event.

Members

Getter
script.zs
// LevelTickEvent.hasResult as bool
myLevelTickEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// LevelTickEvent.hasResult() as bool;
myLevelTickEvent.hasResult();

Return Type: bool

Getter
script.zs
// LevelTickEvent.hasTime as bool
myLevelTickEvent.hasTime

Return Type: bool

Getter
script.zs
// LevelTickEvent.level as Level
myLevelTickEvent.level

Return Type: Level

Getter
script.zs
// LevelTickEvent.result as Result
myLevelTickEvent.result

Return Type: EventResult

Setter
script.zs
// LevelTickEvent.result = (result as Result);
myLevelTickEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// LevelTickEvent.result() as Result;
myLevelTickEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// LevelTickEvent.result(result as Result);
myLevelTickEvent.result(myResult);

Parameters:

result Type: EventResult
setAllow()
sets the event's result to allow
script.zs
// LevelTickEvent.setAllow();
myLevelTickEvent.setAllow();
setDefault()
sets the event's result to default
script.zs
// LevelTickEvent.setDefault();
myLevelTickEvent.setDefault();
setDeny()
sets the event's result to deny
script.zs
// LevelTickEvent.setDeny();
myLevelTickEvent.setDeny();