Class SprintModifier
java.lang.Object
me.arcademadness.omni_dungeon.modifiers.SprintModifier
- All Implemented Interfaces:
AttributeModifier<Float>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of attribute this modifier affects.Modifies the current value of the attribute.voidsetEnabled(boolean enabled)
-
Constructor Details
-
SprintModifier
public SprintModifier(int amount) -
SprintModifier
public SprintModifier()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
modify
Description copied from interface:AttributeModifierModifies 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:
modifyin interfaceAttributeModifier<Float>- Parameters:
currentValue- the current value of the attribute before modification- Returns:
- the new modified value
-
getAttributeType
Description copied from interface:AttributeModifierReturns the type of attribute this modifier affects.- Specified by:
getAttributeTypein interfaceAttributeModifier<Float>- Returns:
- the
AttributeTypeof the attribute being modified
-