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 org.spongepowered.api.event.entity.DamageCalculationEvent
DamageCalculationEvent.Post, DamageCalculationEvent.PreNested classes/interfaces inherited from interface org.spongepowered.api.event.entity.DamageEntityEvent
DamageEntityEvent.Post, DamageEntityEvent.Pre -
Field Summary
Fields inherited from class org.spongepowered.api.event.impl.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 org.spongepowered.api.event.impl.AbstractEvent
initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
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
-