Enum Class Skill

java.lang.Object
java.lang.Enum<Skill>
com.valhalla.sdk.api.methods.Skill
All Implemented Interfaces:
Serializable, Comparable<Skill>, Constable

public enum Skill extends Enum<Skill>
Stable OSRS skill identifiers, including Sailing.
  • Enum Constant Details

    • ATTACK

      public static final Skill ATTACK
      Attack.
    • DEFENCE

      public static final Skill DEFENCE
      Defence.
    • STRENGTH

      public static final Skill STRENGTH
      Strength.
    • HITPOINTS

      public static final Skill HITPOINTS
      Hitpoints.
    • RANGED

      public static final Skill RANGED
      Ranged.
    • PRAYER

      public static final Skill PRAYER
      Prayer.
    • MAGIC

      public static final Skill MAGIC
      Magic.
    • COOKING

      public static final Skill COOKING
      Cooking.
    • WOODCUTTING

      public static final Skill WOODCUTTING
      Woodcutting.
    • FLETCHING

      public static final Skill FLETCHING
      Fletching.
    • FISHING

      public static final Skill FISHING
      Fishing.
    • FIREMAKING

      public static final Skill FIREMAKING
      Firemaking.
    • CRAFTING

      public static final Skill CRAFTING
      Crafting.
    • SMITHING

      public static final Skill SMITHING
      Smithing.
    • MINING

      public static final Skill MINING
      Mining.
    • HERBLORE

      public static final Skill HERBLORE
      Herblore.
    • AGILITY

      public static final Skill AGILITY
      Agility.
    • THIEVING

      public static final Skill THIEVING
      Thieving.
    • SLAYER

      public static final Skill SLAYER
      Slayer.
    • FARMING

      public static final Skill FARMING
      Farming.
    • RUNECRAFTING

      public static final Skill RUNECRAFTING
      Runecrafting.
    • HUNTER

      public static final Skill HUNTER
      Hunter.
    • CONSTRUCTION

      public static final Skill CONSTRUCTION
      Construction.
    • SAILING

      public static final Skill SAILING
      Sailing.
  • Method Details

    • values

      public static Skill[] 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

      public static Skill valueOf(String name)
      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 name
      NullPointerException - 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

      public String getName()
      Returns the display name used in telemetry and user interfaces.
      Returns:
      the display name used in telemetry and user interfaces
    • forId

      public static Optional<Skill> forId(int id)
      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

      public String toString()
      Overrides:
      toString in class Enum<Skill>