Class AbstractDamageEntityEventPost
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
org.spongepowered.api.event.impl.entity.AbstractDamageEntityEventPost
- All Implemented Interfaces:
Cancellable, DamageCalculationEvent, DamageCalculationEvent.Post, DamageEntityEvent, DamageEntityEvent.Post, Event
public abstract class AbstractDamageEntityEventPost
extends AbstractEvent
implements DamageEntityEvent.Post
-
Nested Class Summary
Nested classes/interfaces inherited from interface DamageCalculationEvent
DamageCalculationEvent.Post, DamageCalculationEvent.PreNested classes/interfaces inherited from interface DamageEntityEvent
DamageEntityEvent.Post, DamageEntityEvent.Pre -
Field Summary
Fields inherited from class AbstractEvent
currentOrder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this event will cause the entity to die if the event is not cancelled.Methods inherited from class AbstractEvent
initMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface DamageCalculationEvent
baseDamage, entityMethods inherited from interface DamageCalculationEvent.Post
finalDamage, history
-
Constructor Details
-
AbstractDamageEntityEventPost
public AbstractDamageEntityEventPost()
-
-
Method Details
-
willCauseDeath
public boolean willCauseDeath()Description copied from interface:DamageEntityEvent.PostReturns 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.- Specified by:
willCauseDeathin interfaceDamageEntityEvent.Post- Returns:
- Whether the entity will die
-