PlayerTickEvent

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

Extends

PlayerTickEvent extends PlayerEvent.

Members

Getter
script.zs
// PlayerTickEvent.entity as Player
myPlayerTickEvent.entity

Return Type: Player

Getter
script.zs
// PlayerTickEvent.entity as LivingEntity
myPlayerTickEvent.entity

Return Type: LivingEntity

Getter
script.zs
// PlayerTickEvent.entity as Entity
myPlayerTickEvent.entity

Return Type: Entity

Getter
script.zs
// PlayerTickEvent.hasResult as bool
myPlayerTickEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// PlayerTickEvent.hasResult() as bool;
myPlayerTickEvent.hasResult();

Return Type: bool

Getter
script.zs
// PlayerTickEvent.result as Result
myPlayerTickEvent.result

Return Type: EventResult

Setter
script.zs
// PlayerTickEvent.result = (result as Result);
myPlayerTickEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// PlayerTickEvent.result() as Result;
myPlayerTickEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// PlayerTickEvent.result(result as Result);
myPlayerTickEvent.result(myResult);

Parameters:

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