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
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.
import crafttweaker.api.event.living.LivingKnockBackEvent;
Extending LivingEvent
LivingKnockBackEvent extends LivingEvent. That means all methods available in LivingEvent are also available in LivingKnockBackEvent
Methods
Return Type: double
// LivingKnockBackEvent.getOriginRatioX() as double
event.getOriginRatioX();
Return Type: double
// LivingKnockBackEvent.getOriginRatioZ() as double
event.getOriginRatioZ();
Return Type: float
// LivingKnockBackEvent.getOriginStrength() as float
event.getOriginStrength();
Return Type: double
// LivingKnockBackEvent.getRatioX() as double
event.getRatioX();
Return Type: double
// LivingKnockBackEvent.getRatioZ() as double
event.getRatioZ();
Return Type: float
// LivingKnockBackEvent.getStrength() as float
event.getStrength();
Return Type: void
LivingKnockBackEvent.setRatioX(value as double) as void
Parameter | Type | Description |
---|---|---|
Parameter value | Type double | Description No Description Provided |
Return Type: void
LivingKnockBackEvent.setRatioZ(value as double) as void
Parameter | Type | Description |
---|---|---|
Parameter value | Type double | Description No Description Provided |
Return Type: void
LivingKnockBackEvent.setStrength(value as float) as void
Parameter | Type | Description |
---|---|---|
Parameter value | Type float | Description No Description Provided |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
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 |