Package rs.kreme.ksbot.api.hooks
Class Skills
- java.lang.Object
-
- rs.kreme.ksbot.api.hooks.Skills
-
public class Skills extends java.lang.Object
This class provides utility methods to interact with and retrieve information related to the player's skill levels in the game. It allows querying the boosted and real levels of skills, the experience points for each skill, and determining whether a skill should be boosted.
-
-
Constructor Summary
Constructors Constructor Description Skills()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBoostedLevel(net.runelite.api.Skill skill)
Gets the boosted level of a specified skill.int
getExperience(net.runelite.api.Skill skill)
Gets the experience points for a specified skill.int
getLevel(net.runelite.api.Skill skill)
Gets the real (unboosted) level of a specified skill.int
getTotalLevel()
Gets the total level of all skills combined.boolean
shouldBoost(net.runelite.api.Skill skill)
Determines if a skill should be boosted based on the current boosted and real levels.
-
-
-
Method Detail
-
getBoostedLevel
public int getBoostedLevel(net.runelite.api.Skill skill)
Gets the boosted level of a specified skill.- Parameters:
skill
- The skill to retrieve the boosted level for.- Returns:
- The boosted level of the specified skill.
-
getLevel
public int getLevel(net.runelite.api.Skill skill)
Gets the real (unboosted) level of a specified skill.- Parameters:
skill
- The skill to retrieve the real level for.- Returns:
- The real level of the specified skill.
-
getExperience
public int getExperience(net.runelite.api.Skill skill)
Gets the experience points for a specified skill.- Parameters:
skill
- The skill to retrieve the experience points for.- Returns:
- The experience points for the specified skill.
-
shouldBoost
public boolean shouldBoost(net.runelite.api.Skill skill)
Determines if a skill should be boosted based on the current boosted and real levels. The boost calculation depends on the skill type, and the method checks if the difference between boosted and real levels is less than or equal to a certain threshold.- Parameters:
skill
- The skill to check for boost eligibility.- Returns:
- True if the skill should be boosted, false otherwise.
-
getTotalLevel
public int getTotalLevel()
Gets the total level of all skills combined.- Returns:
- The total skill level.
-
-