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 boolean
canEqual(Object other)
boolean
equals(Object o)
int
getAbsolute()
Absolute total of the stat after applying the boost.String
getFormattedRelative()
Returns a human-readable formatted relative boost.String
getFormattedTheoretical()
Returns a human-readable formatted theoretical boost.Positivity
getPositivity()
How beneficial this stat boost will be to the player.int
getRelative()
Relative change that will occur if the stat boost is applied now.Stat
getStat()
The stat which will be boosted (or damaged).int
getTheoretical()
Theoretical change that can occur before boost cap is enforced.int
hashCode()
void
setAbsolute(int absolute)
Absolute total of the stat after applying the boost.void
setPositivity(Positivity positivity)
How beneficial this stat boost will be to the player.void
setRelative(int relative)
Relative change that will occur if the stat boost is applied now.void
setStat(Stat stat)
The stat which will be boosted (or damaged).void
setTheoretical(int theoretical)
Theoretical change that can occur before boost cap is enforced.String
toString()
-
-
-
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)
-
-