LivingKnockBackEvent

Link to livingknockbackevent

The event is cancelable.

If the event is canceled, the entity is not knocked back.

The event does not have a result.

Diese Klasse importieren

Link to diese-klasse-importieren

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.event.living.LivingKnockBackEvent;

Extending LivingEvent

Link to extending-livingevent

LivingKnockBackEvent extends LivingEvent. That means all methods available in LivingEvent are also available in LivingKnockBackEvent

Name: getOriginRatioX

Return Type: double

ZenScript
Copy
// LivingKnockBackEvent.getOriginRatioX() as double

event.getOriginRatioX();

Name: getOriginRatioZ

Return Type: double

ZenScript
Copy
// LivingKnockBackEvent.getOriginRatioZ() as double

event.getOriginRatioZ();

Link to getOriginStrength

Name: getOriginStrength

Return Type: float

ZenScript
Copy
// LivingKnockBackEvent.getOriginStrength() as float

event.getOriginStrength();

Name: getRatioX

Return Type: double

ZenScript
Copy
// LivingKnockBackEvent.getRatioX() as double

event.getRatioX();

Name: getRatioZ

Return Type: double

ZenScript
Copy
// LivingKnockBackEvent.getRatioZ() as double

event.getRatioZ();

Name: getStrength

Return Type: float

ZenScript
Copy
// LivingKnockBackEvent.getStrength() as float

event.getStrength();

Name: setRatioX

ZenScript
Copy
LivingKnockBackEvent.setRatioX(value as double)
ParameterType
Parameter
value
Type
double

Name: setRatioZ

ZenScript
Copy
LivingKnockBackEvent.setRatioZ(value as double)
ParameterType
Parameter
value
Type
double

Name: setStrength

ZenScript
Copy
LivingKnockBackEvent.setStrength(value as float)
ParameterType
Parameter
value
Type
float
NameTypeHas GetterHas Setter
Name
originRatioX
Type
double
Has Getter
true
Has Setter
false
Name
originRatioZ
Type
double
Has Getter
true
Has Setter
false
Name
originStrength
Type
float
Has Getter
true
Has Setter
false
Name
ratioX
Type
double
Has Getter
true
Has Setter
true
Name
ratioZ
Type
double
Has Getter
true
Has Setter
true
Name
strength
Type
float
Has Getter
true
Has Setter
true