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.Pre
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.DamageCalculationEvent
DamageCalculationEvent.Post, DamageCalculationEvent.Pre
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the knockback modifier.double
Gets the original knockback modifier.void
setKnockbackModifier
(double modifier) Sets the knockback modifier.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.entity.DamageCalculationEvent
baseDamage, entity
Methods 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:
-