LivingFallEvent
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.
import crafttweaker.forge.api.event.entity.living.LivingFallEvent;Extends
LivingFallEvent extends LivingEvent.
Listening to the event
This event can be listened to like so:
events.register<crafttweaker.forge.api.event.entity.living.LivingFallEvent>(event => { println("LivingFallEvent ran!");});Members
cancel()
Cancels the event. Same as script.zs
setCanceled(true)// LivingFallEvent.cancel();event.cancel();Getter
// LivingFallEvent.cancelable as boolevent.cancelable
Return Type:
bool
cancelable() as bool
// LivingFallEvent.cancelable() as bool;event.cancelable();
Return Type:
bool
Getter
// LivingFallEvent.canceled as boolevent.canceled
Return Type:
bool
Setter
// LivingFallEvent.canceled = (cancel as bool);event.canceled = myBool;Parameters:
cancel: bool Type: bool canceled() as bool
// LivingFallEvent.canceled() as bool;event.canceled();
Return Type:
bool
canceled(cancel as bool)
// LivingFallEvent.canceled(cancel as bool);event.canceled(myBool);Parameters:
cancel: bool Type: bool Getter
// LivingFallEvent.damageMultiplier as floatevent.damageMultiplier
Return Type:
float
Setter
// LivingFallEvent.damageMultiplier = (damageMultiplier as float);event.damageMultiplier = myFloat;Parameters:
damageMultiplier: float Type: float Getter
// LivingFallEvent.distance as floatevent.distance
Return Type:
float
Setter
// LivingFallEvent.distance = (distance as float);event.distance = myFloat;Parameters:
distance: float Type: float Getter
// LivingFallEvent.entity as LivingEntityevent.entity
Return Type:
LivingEntity
Getter
Getter
// LivingFallEvent.hasResult as boolevent.hasResult
Return Type:
bool
hasResult() as bool
// LivingFallEvent.hasResult() as bool;event.hasResult();
Return Type:
bool
Getter
// LivingFallEvent.result as EventResultevent.result
Return Type:
EventResult
Setter
event.result = myResult;Parameters:
result: EventResult Type: EventResult result() as Result
result(result as Result)
event.result(myResult);Parameters:
result: EventResult Type: EventResult setAllow()
sets the event's result to script.zs
allow// LivingFallEvent.setAllow();event.setAllow();setDefault()
sets the event's result to script.zs
default// LivingFallEvent.setDefault();event.setDefault();setDeny()
sets the event's result to script.zs
deny// LivingFallEvent.setDeny();event.setDeny();