Interface DamageModifier.Function

Enclosing interface:
DamageModifier
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DamageModifier.Function
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    modify(DamageStep step, double damage)
    Modifies the damage.
  • Method Details

    • modify

      double modify(DamageStep step, double damage)
      Modifies the damage.
      Parameters:
      step - The damage step this modifier is associated with.
      damage - The current damage value.
      Returns:
      The next damage value