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 org.spongepowered.api.event.entity.AttackEntityEvent
AttackEntityEvent.Post, AttackEntityEvent.PreNested classes/interfaces inherited from interface org.spongepowered.api.event.entity.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 org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.entity.DamageCalculationEvent
baseDamage, entityMethods inherited from interface org.spongepowered.api.event.entity.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:
-