Class RangeStatChange
- java.lang.Object
-
- net.runelite.client.plugins.itemstats.StatChange
-
- net.runelite.client.plugins.itemstats.RangeStatChange
-
public class RangeStatChange extends StatChange
A stat change which can result in different magnitudes of change to the stat
-
-
Constructor Summary
Constructors Constructor Description RangeStatChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetFormattedRelative()Returns a human-readable formatted relative boost.StringgetFormattedTheoretical()Returns a human-readable formatted theoretical boost.intgetMinAbsolute()Minimum absolute total of the stat after applying the boost.intgetMinRelative()Minimum relative change that will occur if the stat boost is applied now.intgetMinTheoretical()Minimum theoretical change that can occur before boost cap is enforced.inthashCode()voidsetMinAbsolute(int minAbsolute)Minimum absolute total of the stat after applying the boost.voidsetMinRelative(int minRelative)Minimum relative change that will occur if the stat boost is applied now.voidsetMinTheoretical(int minTheoretical)Minimum theoretical change that can occur before boost cap is enforced.StringtoString()-
Methods inherited from class net.runelite.client.plugins.itemstats.StatChange
getAbsolute, getPositivity, getRelative, getStat, getTheoretical, setAbsolute, setPositivity, setRelative, setStat, setTheoretical
-
-
-
-
Method Detail
-
getFormattedRelative
public String getFormattedRelative()
Returns a human-readable formatted relative boost. Should be the boost range in the format "±N" (for minimum -N and maximum +N values), "+MIN~MAX" (for minimum and maximum values of the same sign), "-MIN~+MAX" (for negative minimum and positive maximum values), or "+MAX" (for equal minimum and maximum values).- Overrides:
getFormattedRelativein classStatChange- Returns:
- The formatted relative boost amount
-
getFormattedTheoretical
public String getFormattedTheoretical()
Returns a human-readable formatted theoretical boost. Should be the boost range in the format "±N" (for minimum -N and maximum +N values), "+MIN~MAX" (for minimum and maximum values of the same sign), "-MIN~+MAX" (for negative minimum and positive maximum values), or "+MAX" (for equal minimum and maximum values).- Overrides:
getFormattedTheoreticalin classStatChange- Returns:
- The formatted theoretical boost amount
-
getMinRelative
public int getMinRelative()
Minimum relative change that will occur if the stat boost is applied now. In this class,relativeis representative of the maximum relative change that will occur.
-
getMinTheoretical
public int getMinTheoretical()
Minimum theoretical change that can occur before boost cap is enforced. In this class,theoreticalis representative of the maximum theoretical change that will occur.
-
getMinAbsolute
public int getMinAbsolute()
Minimum absolute total of the stat after applying the boost. In this class,absoluteis representative of the maximum absolute change that will occur.
-
setMinRelative
public void setMinRelative(int minRelative)
Minimum relative change that will occur if the stat boost is applied now. In this class,relativeis representative of the maximum relative change that will occur.
-
setMinTheoretical
public void setMinTheoretical(int minTheoretical)
Minimum theoretical change that can occur before boost cap is enforced. In this class,theoreticalis representative of the maximum theoretical change that will occur.
-
setMinAbsolute
public void setMinAbsolute(int minAbsolute)
Minimum absolute total of the stat after applying the boost. In this class,absoluteis representative of the maximum absolute change that will occur.
-
toString
public String toString()
- Overrides:
toStringin classStatChange
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classStatChange
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classStatChange
-
hashCode
public int hashCode()
- Overrides:
hashCodein classStatChange
-
-