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 boolean
canEqual(Object other)
boolean
equals(Object o)
String
getFormattedRelative()
Returns a human-readable formatted relative boost.String
getFormattedTheoretical()
Returns a human-readable formatted theoretical boost.int
getMinAbsolute()
Minimum absolute total of the stat after applying the boost.int
getMinRelative()
Minimum relative change that will occur if the stat boost is applied now.int
getMinTheoretical()
Minimum theoretical change that can occur before boost cap is enforced.int
hashCode()
void
setMinAbsolute(int minAbsolute)
Minimum absolute total of the stat after applying the boost.void
setMinRelative(int minRelative)
Minimum relative change that will occur if the stat boost is applied now.void
setMinTheoretical(int minTheoretical)
Minimum theoretical change that can occur before boost cap is enforced.String
toString()
-
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:
getFormattedRelative
in 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:
getFormattedTheoretical
in 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,relative
is 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,theoretical
is 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,absolute
is 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,relative
is 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,theoretical
is 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,absolute
is representative of the maximum absolute change that will occur.
-
toString
public String toString()
- Overrides:
toString
in classStatChange
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classStatChange
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classStatChange
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classStatChange
-
-