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.

Importing the class

Link to importing-the-class

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

Link to g-

Name: getOriginRatioX

Return Type: double

ZenScript
Copy
// LivingKnockBackEvent.getOriginRatioX() as double

event.getOriginRatioX();

Link to g--1

Name: getOriginRatioZ

Return Type: double

ZenScript
Copy
// LivingKnockBackEvent.getOriginRatioZ() as double

event.getOriginRatioZ();

Link to g--2

Name: getOriginStrength

Return Type: float

ZenScript
Copy
// LivingKnockBackEvent.getOriginStrength() as float

event.getOriginStrength();

Link to g--3

Name: getRatioX

Return Type: double

ZenScript
Copy
// LivingKnockBackEvent.getRatioX() as double

event.getRatioX();

Link to g--4

Name: getRatioZ

Return Type: double

ZenScript
Copy
// LivingKnockBackEvent.getRatioZ() as double

event.getRatioZ();

Link to g--5

Name: getStrength

Return Type: float

ZenScript
Copy
// LivingKnockBackEvent.getStrength() as float

event.getStrength();

Link to g--6

Name: setRatioX

Return Type: void

ZenScript
Copy
LivingKnockBackEvent.setRatioX(value as double) as void
ParameterTypeDescription
Parameter
value
Type
double
Description
No Description Provided

Link to g--7

Name: setRatioZ

Return Type: void

ZenScript
Copy
LivingKnockBackEvent.setRatioZ(value as double) as void
ParameterTypeDescription
Parameter
value
Type
double
Description
No Description Provided

Link to g--8

Name: setStrength

Return Type: void

ZenScript
Copy
LivingKnockBackEvent.setStrength(value as float) as void
ParameterTypeDescription
Parameter
value
Type
float
Description
No Description Provided
NameTypeHas GetterHas SetterDescription
Name
originRatioX
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
originRatioZ
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
originStrength
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
ratioX
Type
double
Has Getter
true
Has Setter
true
Description
No Description Provided
Name
ratioZ
Type
double
Has Getter
true
Has Setter
true
Description
No Description Provided
Name
strength
Type
float
Has Getter
true
Has Setter
true
Description
No Description Provided