Interface DamageEntityEvent.Post
- All Superinterfaces:
Cancellable
,DamageCalculationEvent
,DamageCalculationEvent.Post
,DamageEntityEvent
,Event
- All Known Implementing Classes:
AbstractDamageEntityEventPost
- Enclosing interface:
DamageEntityEvent
public static interface DamageEntityEvent.Post
extends DamageEntityEvent, 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.DamageCalculationEvent
DamageCalculationEvent.Post, DamageCalculationEvent.Pre
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.DamageEntityEvent
DamageEntityEvent.Post, DamageEntityEvent.Pre
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this event will cause the entity to die if the event is not cancelled.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
-
willCauseDeath
boolean willCauseDeath()Returns whether this event will cause the entity to die if the event is not cancelled. Only supported for living entities, returns false ifDamageCalculationEvent.entity()
is not a living entity.- Returns:
- Whether the entity will die
-