Class AbstractDamageCalculationEventPre
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
org.spongepowered.api.event.impl.entity.AbstractDamageCalculationEventPre
- All Implemented Interfaces:
Cancellable,DamageCalculationEvent,DamageCalculationEvent.Pre,Event
public abstract class AbstractDamageCalculationEventPre
extends AbstractEvent
implements DamageCalculationEvent.Pre
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.DamageCalculationEvent
DamageCalculationEvent.Post, DamageCalculationEvent.Pre -
Field Summary
Fields inherited from class org.spongepowered.api.event.impl.AbstractEvent
currentOrder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModifierAfter(DamageStepType type, DamageModifier modifier) Adds a modifier that applies just after the step.voidaddModifierBefore(DamageStepType type, DamageModifier modifier) Adds a modifier that applies just before the step.modifiersAfter(DamageStepType type) Gets an unmodifiable list of all modifiers that applies just after the step.Gets an unmodifiable list of all modifiers that applies just before the step.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.Pre
addModifierAfter, addModifierBefore, modifiersAfter, modifiersBefore
-
Constructor Details
-
AbstractDamageCalculationEventPre
public AbstractDamageCalculationEventPre()
-
-
Method Details
-
modifiersBefore
Description copied from interface:DamageCalculationEvent.PreGets an unmodifiable list of all modifiers that applies just before the step.- Specified by:
modifiersBeforein interfaceDamageCalculationEvent.Pre- Parameters:
type- The step type- Returns:
- The list of modifiers
-
modifiersAfter
Description copied from interface:DamageCalculationEvent.PreGets an unmodifiable list of all modifiers that applies just after the step.- Specified by:
modifiersAfterin interfaceDamageCalculationEvent.Pre- Parameters:
type- The step type- Returns:
- The list of modifiers
-
addModifierBefore
Description copied from interface:DamageCalculationEvent.PreAdds a modifier that applies just before the step.- Specified by:
addModifierBeforein interfaceDamageCalculationEvent.Pre- Parameters:
type- The step typemodifier- The modifier
-
addModifierAfter
Description copied from interface:DamageCalculationEvent.PreAdds a modifier that applies just after the step.- Specified by:
addModifierAfterin interfaceDamageCalculationEvent.Pre- Parameters:
type- The step typemodifier- The modifier
-