Interface SpellStatModifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for calculating a modified
SpellStat value.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SpellStatModifieradd(double value) static SpellStatModifieraddMultipliedBase(double value) static SpellStatModifieraddMultipliedTotal(double value) doublemodify(double base, double modified, SpellCastContext context) Calculates a modified value.static SpellStatModifiermultiply(double value)
-
Field Details
-
NOOP
-
-
Method Details
-
modify
Calculates a modified value.- Parameters:
base- The base value being modified.modified- The modified value with all previous modifications.context- TheSpellCastContextto use.- Returns:
- A modified value.
-
add
- Parameters:
value- The value to add.- Returns:
- A spell stat modifier that adds the given value to the modified value.
-
multiply
- Parameters:
value- The value to multiply with.- Returns:
- A spell stat modifier that multiplies the given value with the modified value.
-
addMultipliedBase
- Parameters:
value- The value to multiply with.- Returns:
- A spell stat modifier that adds the base value, multiplied with the given value, to the modified value.
-
addMultipliedTotal
- Parameters:
value- The value to multiply with.- Returns:
- A spell stat modifier that adds the modified value, multiplied with the given value, to the modified value.
-