Class DefaultSpellPartStatModifier
java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.spell.DefaultSpellPartStatModifier
Utility class for default spell part stat modifiers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ISpellPartStatModifierstatic final ISpellPartStatModifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ISpellPartStatModifieradd(float value) static ISpellPartStatModifieraddMultiplied(float value) static ISpellPartStatModifieraddMultipliedBase(float value) static ISpellPartStatModifiermultiply(float value) static ISpellPartStatModifiersubtract(float value) static ISpellPartStatModifiersubtractMultiplied(float value) static ISpellPartStatModifiersubtractMultipliedBase(float value)
-
Field Details
-
NOOP
-
COUNTING
-
-
Constructor Details
-
DefaultSpellPartStatModifier
public DefaultSpellPartStatModifier()
-
-
Method Details
-
add
- Parameters:
value- The value to add.- Returns:
- A new spell part stat modifier that adds the given value to the modified value.
-
subtract
- Parameters:
value- The value to subtract.- Returns:
- A new spell part stat modifier that subtracts the given value from the modified value.
-
multiply
- Parameters:
value- The value to multiply with.- Returns:
- A new spell part stat modifier that multiplies the given value with the modified value.
-
addMultipliedBase
- Parameters:
value- The value to multiply with.- Returns:
- A new spell part stat modifier that adds the base value, multiplied with the given value, to the modified value.
-
subtractMultipliedBase
- Parameters:
value- The value to multiply with.- Returns:
- A new spell part stat modifier that subtracts the base value, multiplied with the given value, from the modified value.
-
addMultiplied
- Parameters:
value- The value to multiply with.- Returns:
- A new spell part stat modifier that adds the modified value, multiplied with the given value, to the modified value.
-
subtractMultiplied
- Parameters:
value- The value to multiply with.- Returns:
- A new spell part stat modifier that subtracts the modified value, multiplied with the given value, from the modified value.
-