LivingTickEvent

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.forge.api.event.tick.LivingTickEvent;

Extends

LivingTickEvent extends LivingEvent.

Members

cancel()
Cancels the event. Same as setCanceled(true)
script.zs
// LivingTickEvent.cancel();
myLivingTickEvent.cancel();
Getter
script.zs
// LivingTickEvent.cancelable as bool
myLivingTickEvent.cancelable

Return Type: bool

cancelable() as bool
script.zs
// LivingTickEvent.cancelable() as bool;
myLivingTickEvent.cancelable();

Return Type: bool

Getter
script.zs
// LivingTickEvent.canceled as bool
myLivingTickEvent.canceled

Return Type: bool

Setter
script.zs
// LivingTickEvent.canceled = (cancel as bool);
myLivingTickEvent.canceled = myBool;

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// LivingTickEvent.canceled() as bool;
myLivingTickEvent.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// LivingTickEvent.canceled(cancel as bool);
myLivingTickEvent.canceled(myBool);

Parameters:

cancel Type: bool
Getter
script.zs
// LivingTickEvent.entity as LivingEntity
myLivingTickEvent.entity

Return Type: LivingEntity

Getter
script.zs
// LivingTickEvent.entity as Entity
myLivingTickEvent.entity

Return Type: Entity

Getter
script.zs
// LivingTickEvent.hasResult as bool
myLivingTickEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// LivingTickEvent.hasResult() as bool;
myLivingTickEvent.hasResult();

Return Type: bool

Getter
script.zs
// LivingTickEvent.result as Result
myLivingTickEvent.result

Return Type: EventResult

Setter
script.zs
// LivingTickEvent.result = (result as Result);
myLivingTickEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// LivingTickEvent.result() as Result;
myLivingTickEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// LivingTickEvent.result(result as Result);
myLivingTickEvent.result(myResult);

Parameters:

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