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.

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.

Event interface extensions

Link to event-interface-extensions

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

ZenGetters/ZenSetters

Link to zengetterszensetters

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.