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 TypeMethodDescriptionvoid
addModifierAfter
(DamageStepType type, DamageModifier modifier) Adds a modifier that applies just after the step.void
addModifierBefore
(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
init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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.Pre
addModifierAfter, addModifierBefore, modifiersAfter, modifiersBefore
-
Constructor Details
-
AbstractDamageCalculationEventPre
public AbstractDamageCalculationEventPre()
-
-
Method Details
-
modifiersBefore
Description copied from interface:DamageCalculationEvent.Pre
Gets an unmodifiable list of all modifiers that applies just before the step.- Specified by:
modifiersBefore
in interfaceDamageCalculationEvent.Pre
- Parameters:
type
- The step type- Returns:
- The list of modifiers
-
modifiersAfter
Description copied from interface:DamageCalculationEvent.Pre
Gets an unmodifiable list of all modifiers that applies just after the step.- Specified by:
modifiersAfter
in interfaceDamageCalculationEvent.Pre
- Parameters:
type
- The step type- Returns:
- The list of modifiers
-
addModifierBefore
Description copied from interface:DamageCalculationEvent.Pre
Adds a modifier that applies just before the step.- Specified by:
addModifierBefore
in interfaceDamageCalculationEvent.Pre
- Parameters:
type
- The step typemodifier
- The modifier
-
addModifierAfter
Description copied from interface:DamageCalculationEvent.Pre
Adds a modifier that applies just after the step.- Specified by:
addModifierAfter
in interfaceDamageCalculationEvent.Pre
- Parameters:
type
- The step typemodifier
- The modifier
-