Interface DamageCalculationEvent.Post

All Superinterfaces:
Cancellable, DamageCalculationEvent, Event
All Known Subinterfaces:
AttackEntityEvent.Post, DamageEntityEvent.Post
All Known Implementing Classes:
AbstractDamageEntityEventPost
Enclosing interface:
DamageCalculationEvent

public static interface DamageCalculationEvent.Post extends DamageCalculationEvent
Fires after the damage steps and their side effects have been applied. The steps have been captured and can't be changed.
  • Method Details

    • finalDamage

      double finalDamage()
      Gets the final damage to deal to the targeted Entity. The final damage is the value after the calculation and its DamageSteps. The final damage is the amount of health being lost by the Entity, if health is tracked. To modify the final damage, add a modifier to the step associated to DamageStepTypes.END.
      Returns:
      The final damage
    • history

      Gets the DamageStepHistory of this damage calculation.
      Returns:
      The history.