ClientTickEvent

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.ClientTickEvent;

Extends

ClientTickEvent extends Event.

Members

Getter
script.zs
// ClientTickEvent.hasResult as bool
myClientTickEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// ClientTickEvent.hasResult() as bool;
myClientTickEvent.hasResult();

Return Type: bool

Getter
script.zs
// ClientTickEvent.result as Result
myClientTickEvent.result

Return Type: EventResult

Setter
script.zs
// ClientTickEvent.result = (result as Result);
myClientTickEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// ClientTickEvent.result() as Result;
myClientTickEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// ClientTickEvent.result(result as Result);
myClientTickEvent.result(myResult);

Parameters:

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