Interface DamageCalculationEvent.Pre
- All Superinterfaces:
- Cancellable,- DamageCalculationEvent,- Event
- All Known Subinterfaces:
- AttackEntityEvent.Pre,- DamageEntityEvent.Pre
- All Known Implementing Classes:
- AbstractDamageCalculationEventPre
- Enclosing interface:
- DamageCalculationEvent
Fires before the damage steps and their side effects are applied.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.event.entity.DamageCalculationEventDamageCalculationEvent.Post, DamageCalculationEvent.Pre
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidaddModifierAfter(Supplier<DamageStepType> type, DamageModifier modifier) Adds a modifier that applies just after the step.voidaddModifierAfter(DamageStepType type, DamageModifier modifier) Adds a modifier that applies just after the step.default voidaddModifierBefore(Supplier<DamageStepType> type, DamageModifier modifier) Adds a modifier that applies just before the step.voidaddModifierBefore(DamageStepType type, DamageModifier modifier) Adds a modifier that applies just before the step.default List<DamageModifier> modifiersAfter(Supplier<DamageStepType> type) Gets an unmodifiable list of all modifiers that applies just after the step.modifiersAfter(DamageStepType type) Gets an unmodifiable list of all modifiers that applies just after the step.default List<DamageModifier> Gets an unmodifiable list of all modifiers that applies just before the step.Gets an unmodifiable list of all modifiers that applies just before the step.Methods inherited from interface org.spongepowered.api.event.CancellableisCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.entity.DamageCalculationEventbaseDamage, entity
- 
Method Details- 
modifiersBeforeGets an unmodifiable list of all modifiers that applies just before the step.- Parameters:
- type- The step type
- Returns:
- The list of modifiers
 
- 
modifiersBeforeGets an unmodifiable list of all modifiers that applies just before the step.- Parameters:
- type- The step type
- Returns:
- The list of modifiers
 
- 
addModifierBeforeAdds a modifier that applies just before the step.- Parameters:
- type- The step type
- modifier- The modifier
 
- 
addModifierBeforeAdds a modifier that applies just before the step.- Parameters:
- type- The step type
- modifier- The modifier
 
- 
modifiersAfterGets an unmodifiable list of all modifiers that applies just after the step.- Parameters:
- type- The step type
- Returns:
- The list of modifiers
 
- 
modifiersAfterGets an unmodifiable list of all modifiers that applies just after the step.- Parameters:
- type- The step type
- Returns:
- The list of modifiers
 
- 
addModifierAfterAdds a modifier that applies just after the step.- Parameters:
- type- The step type
- modifier- The modifier
 
- 
addModifierAfterAdds a modifier that applies just after the step.- Parameters:
- type- The step type
- modifier- The modifier
 
 
-