Package com.valhalla.sdk.api.methods
Enum Class Skill
- All Implemented Interfaces:
Serializable,Comparable<Skill>,Constable
Stable OSRS skill identifiers, including Sailing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAgility.Attack.Construction.Cooking.Crafting.Defence.Farming.Firemaking.Fishing.Fletching.Herblore.Hitpoints.Hunter.Magic.Mining.Prayer.Ranged.Runecrafting.Sailing.Slayer.Smithing.Strength.Thieving.Woodcutting. -
Method Summary
Modifier and TypeMethodDescriptionforId(int id) Resolves a skill by its client identifier.intReturns this skill's current, boost-aware level.intReturns this skill's accumulated experience.intReturns experience remaining before the next level.intgetId()Returns the stable zero-based client skill identifier.intgetLevel()Returns this skill's unboosted level.getName()Returns the display name used in telemetry and user interfaces.toString()static SkillReturns the enum constant of this class with the specified name.static Skill[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ATTACK
Attack. -
DEFENCE
Defence. -
STRENGTH
Strength. -
HITPOINTS
Hitpoints. -
RANGED
Ranged. -
PRAYER
Prayer. -
MAGIC
Magic. -
COOKING
Cooking. -
WOODCUTTING
Woodcutting. -
FLETCHING
Fletching. -
FISHING
Fishing. -
FIREMAKING
Firemaking. -
CRAFTING
Crafting. -
SMITHING
Smithing. -
MINING
Mining. -
HERBLORE
Herblore. -
AGILITY
Agility. -
THIEVING
Thieving. -
SLAYER
Slayer. -
FARMING
Farming. -
RUNECRAFTING
Runecrafting. -
HUNTER
Hunter. -
CONSTRUCTION
Construction. -
SAILING
Sailing.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()Returns the stable zero-based client skill identifier.- Returns:
- the stable zero-based client skill identifier
-
getName
Returns the display name used in telemetry and user interfaces.- Returns:
- the display name used in telemetry and user interfaces
-
forId
Resolves a skill by its client identifier.- Parameters:
id- zero-based client skill identifier- Returns:
- the matching skill, or an empty value when the identifier is unknown
-
getBoostedLevel
public int getBoostedLevel()Returns this skill's current, boost-aware level.- Returns:
- this skill's current, boost-aware level
-
getLevel
public int getLevel()Returns this skill's unboosted level.- Returns:
- this skill's unboosted level
-
getExperience
public int getExperience()Returns this skill's accumulated experience.- Returns:
- this skill's accumulated experience
-
getExperienceToLevel
public int getExperienceToLevel()Returns experience remaining before the next level.- Returns:
- experience remaining before the next level
-
toString
-