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.
Импорт класса
Link to импорт-класса
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 Copyimport 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 методы
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();
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
Return Type: void
ZenScript CopyLivingKnockBackEvent.setRatioX(value as double) as void
Параметр | Тип | Описание |
---|---|---|
Параметр value | Тип double | Описание No Description Provided |
Name: setRatioZ
Return Type: void
ZenScript CopyLivingKnockBackEvent.setRatioZ(value as double) as void
Параметр | Тип | Описание |
---|---|---|
Параметр value | Тип double | Описание No Description Provided |
Name: setStrength
Return Type: void
ZenScript CopyLivingKnockBackEvent.setStrength(value as float) as void
Параметр | Тип | Описание |
---|---|---|
Параметр value | Тип float | Описание No Description Provided |
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название originRatioX | Тип double | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название originRatioZ | Тип double | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название originStrength | Тип float | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название ratioX | Тип double | Имеет Getter true | Имеет Setter true | Описание No Description Provided |
Название ratioZ | Тип double | Имеет Getter true | Имеет Setter true | Описание No Description Provided |
Название strength | Тип float | Имеет Getter true | Имеет Setter true | Описание No Description Provided |