Class SprintModifier

java.lang.Object
me.arcademadness.omni_dungeon.modifiers.SprintModifier
All Implemented Interfaces:
AttributeModifier<Float>

public class SprintModifier extends Object implements AttributeModifier<Float>
  • Constructor Details

    • SprintModifier

      public SprintModifier(int amount)
    • SprintModifier

      public SprintModifier()
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • modify

      public Float modify(Float currentValue)
      Description copied from interface: AttributeModifier
      Modifies the current value of the attribute.

      Implementations define the logic for how the value is altered, such as adding, multiplying, or applying more complex formulas.

      Specified by:
      modify in interface AttributeModifier<Float>
      Parameters:
      currentValue - the current value of the attribute before modification
      Returns:
      the new modified value
    • getAttributeType

      public AttributeType getAttributeType()
      Description copied from interface: AttributeModifier
      Returns the type of attribute this modifier affects.
      Specified by:
      getAttributeType in interface AttributeModifier<Float>
      Returns:
      the AttributeType of the attribute being modified