Interface ModifierFunction<M>
-
- Type Parameters:
M- The modifier type
- All Known Implementing Classes:
DamageFunction
public interface ModifierFunction<M>A function associating aDamageModifierwith aDoubleUnaryOperatorof the resultant effect.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleUnaryOperatorfunction()Gets the double unary operator used by this function.Mmodifier()Gets the modifier used by this modifier function.
-
-
-
Method Detail
-
modifier
M modifier()
Gets the modifier used by this modifier function.- Returns:
- The modifier
-
function
DoubleUnaryOperator function()
Gets the double unary operator used by this function.- Returns:
- The unary operator
-
-