LivingConversionEvent

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.entity.conversion.LivingConversionEvent;

Extends

LivingConversionEvent extends LivingEvent.

Members

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

Return Type: bool

cancelable() as bool
script.zs
// LivingConversionEvent.cancelable() as bool;
myLivingConversionEvent.cancelable();

Return Type: bool

Getter
script.zs
// LivingConversionEvent.canceled as bool
myLivingConversionEvent.canceled

Return Type: bool

Setter
script.zs
// LivingConversionEvent.canceled = (cancel as bool);
myLivingConversionEvent.canceled = myBool;

Parameters:

cancel Type: bool
canceled() as bool
script.zs
// LivingConversionEvent.canceled() as bool;
myLivingConversionEvent.canceled();

Return Type: bool

canceled(cancel as bool)
script.zs
// LivingConversionEvent.canceled(cancel as bool);
myLivingConversionEvent.canceled(myBool);

Parameters:

cancel Type: bool
Getter
script.zs
// LivingConversionEvent.entity as LivingEntity
myLivingConversionEvent.entity

Return Type: LivingEntity

Getter
script.zs
// LivingConversionEvent.entity as Entity
myLivingConversionEvent.entity

Return Type: Entity

Getter
script.zs
// LivingConversionEvent.hasResult as bool
myLivingConversionEvent.hasResult

Return Type: bool

hasResult() as bool
script.zs
// LivingConversionEvent.hasResult() as bool;
myLivingConversionEvent.hasResult();

Return Type: bool

Getter
script.zs
// LivingConversionEvent.result as Result
myLivingConversionEvent.result

Return Type: EventResult

Setter
script.zs
// LivingConversionEvent.result = (result as Result);
myLivingConversionEvent.result = myResult;

Parameters:

result Type: EventResult
result() as Result
script.zs
// LivingConversionEvent.result() as Result;
myLivingConversionEvent.result();

Return Type: EventResult

result(result as Result)
script.zs
// LivingConversionEvent.result(result as Result);
myLivingConversionEvent.result(myResult);

Parameters:

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