This event is fired whenever an entity is knocked back. The event is cancelable and doing so will prevent the entity from being knocked back. Alternately, the strength of the knockback in addition to the X and Z ratios can be adjusted.

Класс события

Link to класс-события

You will need to cast the event in the function header as this class:
crafttweaker.event.LivingKnockBackEvent
You can, of course, also import the class before and use that name then.

Наследование от интерфейсов событий

Link to наследование-от-интерфейсов-событий

LivingKnockBack Events implement the following interfaces and are able to call all of their methods/getters/setters as well:

Геттеры/сеттеры

Link to геттерысеттеры

The following information can be retrieved/set during the event:

ZenGetterZenSetterТип
ZenGetter
attacker
ZenSetter
attacker
Тип
IEntity
ZenGetter
originalAttacker
ZenSetter
Тип
IEntity
ZenGetter
strength
ZenSetter
strength
Тип
float
ZenGetter
originalStrength
ZenSetter
Тип
float
ZenGetter
ratioX
ZenSetter
ratioX
Тип
double
ZenGetter
ratioZ
ZenSetter
ratioZ
Тип
double
ZenGetter
originalRatioX
ZenSetter
Тип
double
ZenGetter
originalRatioZ
ZenSetter
Тип
double

When the event arrives, it's possible that the attacker, strength, or the various ratios have already been modified. You can find these values in the original* variables.