Interface AttackEntityEvent.Post
- All Superinterfaces:
AttackEntityEvent, Cancellable, DamageCalculationEvent, DamageCalculationEvent.Post, Event
- Enclosing interface:
AttackEntityEvent
public static interface AttackEntityEvent.Post
extends AttackEntityEvent, DamageCalculationEvent.Post
Fires after the damage steps and their side effects have been applied.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AttackEntityEvent
AttackEntityEvent.Post, AttackEntityEvent.PreNested classes/interfaces inherited from interface DamageCalculationEvent
DamageCalculationEvent.Post, DamageCalculationEvent.Pre -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the knockback modifier.doubleGets the original knockback modifier.voidsetKnockbackModifier(double modifier) Sets the knockback modifier.Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface DamageCalculationEvent
baseDamage, entityMethods inherited from interface DamageCalculationEvent.Post
finalDamage, history
-
Method Details
-
originalKnockbackModifier
double originalKnockbackModifier()Gets the original knockback modifier.- Returns:
- The original knockback modifier
- See Also:
-
knockbackModifier
double knockbackModifier()Gets the knockback modifier. The modifier itself will apply to the momentum of the attacked entity.- Returns:
- The knockback modifier
-
setKnockbackModifier
void setKnockbackModifier(double modifier) Sets the knockback modifier.- Parameters:
modifier- The knockback modifier to set- See Also:
-