Interface ModifierFunction<M>
-
- Type Parameters:
M
- The modifier type
- All Known Implementing Classes:
DamageFunction
public interface ModifierFunction<M>
A function associating aDamageModifier
with aDoubleUnaryOperator
of the resultant effect.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleUnaryOperator
function()
Gets the double unary operator used by this function.M
modifier()
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
-
-