Class StatChange
- java.lang.Object
-
- net.runelite.client.plugins.itemstats.StatChange
-
- Direct Known Subclasses:
RangeStatChange
public class StatChange extends Object
A single stat change
-
-
Constructor Summary
Constructors Constructor Description StatChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)intgetAbsolute()Absolute total of the stat after applying the boost.StringgetFormattedRelative()Returns a human-readable formatted relative boost.StringgetFormattedTheoretical()Returns a human-readable formatted theoretical boost.PositivitygetPositivity()How beneficial this stat boost will be to the player.intgetRelative()Relative change that will occur if the stat boost is applied now.StatgetStat()The stat which will be boosted (or damaged).intgetTheoretical()Theoretical change that can occur before boost cap is enforced.inthashCode()voidsetAbsolute(int absolute)Absolute total of the stat after applying the boost.voidsetPositivity(Positivity positivity)How beneficial this stat boost will be to the player.voidsetRelative(int relative)Relative change that will occur if the stat boost is applied now.voidsetStat(Stat stat)The stat which will be boosted (or damaged).voidsetTheoretical(int theoretical)Theoretical change that can occur before boost cap is enforced.StringtoString()
-
-
-
Method Detail
-
getFormattedRelative
public String getFormattedRelative()
Returns a human-readable formatted relative boost. Should be the boost amount prefixed by "+" or "-".- Returns:
- The formatted relative boost amount
-
getFormattedTheoretical
public String getFormattedTheoretical()
Returns a human-readable formatted theoretical boost. Should be the boost amount prefixed by "+" or "-".- Returns:
- The formatted theoretical boost amount
-
getStat
public Stat getStat()
The stat which will be boosted (or damaged).
-
getRelative
public int getRelative()
Relative change that will occur if the stat boost is applied now.
-
getTheoretical
public int getTheoretical()
Theoretical change that can occur before boost cap is enforced.
-
getAbsolute
public int getAbsolute()
Absolute total of the stat after applying the boost.
-
getPositivity
public Positivity getPositivity()
How beneficial this stat boost will be to the player.
-
setStat
public void setStat(Stat stat)
The stat which will be boosted (or damaged).
-
setRelative
public void setRelative(int relative)
Relative change that will occur if the stat boost is applied now.
-
setTheoretical
public void setTheoretical(int theoretical)
Theoretical change that can occur before boost cap is enforced.
-
setAbsolute
public void setAbsolute(int absolute)
Absolute total of the stat after applying the boost.
-
setPositivity
public void setPositivity(Positivity positivity)
How beneficial this stat boost will be to the player.
-
canEqual
protected boolean canEqual(Object other)
-
-