Class DefaultSpellPartStatModifier

java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.spell.DefaultSpellPartStatModifier

public final class DefaultSpellPartStatModifier extends Object
Utility class for default spell part stat modifiers.
  • Field Details

  • Constructor Details

    • DefaultSpellPartStatModifier

      public DefaultSpellPartStatModifier()
  • Method Details

    • add

      public static ISpellPartStatModifier add(float value)
      Parameters:
      value - The value to add.
      Returns:
      A new spell part stat modifier that adds the given value to the modified value.
    • subtract

      public static ISpellPartStatModifier subtract(float value)
      Parameters:
      value - The value to subtract.
      Returns:
      A new spell part stat modifier that subtracts the given value from the modified value.
    • multiply

      public static ISpellPartStatModifier multiply(float value)
      Parameters:
      value - The value to multiply with.
      Returns:
      A new spell part stat modifier that multiplies the given value with the modified value.
    • addMultipliedBase

      public static ISpellPartStatModifier addMultipliedBase(float value)
      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

      public static ISpellPartStatModifier subtractMultipliedBase(float value)
      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

      public static ISpellPartStatModifier addMultiplied(float value)
      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

      public static ISpellPartStatModifier subtractMultiplied(float value)
      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.