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

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

    • modifier

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

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