EntityTickEvent

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

Extends

EntityTickEvent extends EntityEvent.

Members

Getter
script.zs
// EntityTickEvent.entity as Entity
myEntityTickEvent.entity

Return Type: Entity

Getter
script.zs
// EntityTickEvent.hasResult as bool
myEntityTickEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// EntityTickEvent.hasResult() as bool;
myEntityTickEvent.hasResult();

Return Type: bool

Getter
script.zs
// EntityTickEvent.result as Result
myEntityTickEvent.result

Return Type: EventResult

Setter
script.zs
// EntityTickEvent.result = (result as Result);
myEntityTickEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// EntityTickEvent.result() as Result;
myEntityTickEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// EntityTickEvent.result(result as Result);
myEntityTickEvent.result(myResult);

Parameters:

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