Interface ModifierFunction<M>

Type Parameters:
M - The modifier type
All Known Implementing Classes:
DamageFunction

public interface ModifierFunction<M>
A function associating a DamageModifier with a DoubleUnaryOperator of the resultant effect.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Gets the double unary operator used by this function.
    Gets the modifier used by this modifier function.
  • Method Details Link icon

    • modifier Link icon

      M modifier()
      Gets the modifier used by this modifier function.
      Returns:
      The modifier
    • function Link icon

      Gets the double unary operator used by this function.
      Returns:
      The unary operator