Package org.dreambot.api.methods.skills
Enum Skill
- java.lang.Object
-
- java.lang.Enum<Skill>
-
- org.dreambot.api.methods.skills.Skill
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable Skill
forId(int id)
Gets the skill that corresponds to the unique id.int
getBoostedLevel()
int
getChildWidget()
Gets the skill's child widget id.int
getExperience()
int
getExperienceToLevel()
int
getId()
Gets the skill's unique id.int
getLevel()
@NonNull java.lang.String
getName()
Gets the skill's name.java.lang.String
toString()
static Skill
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Skill[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTACK
@SerializedName("Attack") public static final Skill ATTACK
-
DEFENCE
@SerializedName("Defence") public static final Skill DEFENCE
-
STRENGTH
@SerializedName("Strength") public static final Skill STRENGTH
-
HITPOINTS
@SerializedName("Hitpoints") public static final Skill HITPOINTS
-
RANGED
@SerializedName("Ranged") public static final Skill RANGED
-
PRAYER
@SerializedName("Prayer") public static final Skill PRAYER
-
MAGIC
@SerializedName("Magic") public static final Skill MAGIC
-
COOKING
@SerializedName("Cooking") public static final Skill COOKING
-
WOODCUTTING
@SerializedName("Woodcutting") public static final Skill WOODCUTTING
-
FLETCHING
@SerializedName("Fletching") public static final Skill FLETCHING
-
FISHING
@SerializedName("Fishing") public static final Skill FISHING
-
FIREMAKING
@SerializedName("Firemaking") public static final Skill FIREMAKING
-
CRAFTING
@SerializedName("Crafting") public static final Skill CRAFTING
-
SMITHING
@SerializedName("Smithing") public static final Skill SMITHING
-
MINING
@SerializedName("Mining") public static final Skill MINING
-
HERBLORE
@SerializedName("Herblore") public static final Skill HERBLORE
-
AGILITY
@SerializedName("Agility") public static final Skill AGILITY
-
THIEVING
@SerializedName("Thieving") public static final Skill THIEVING
-
SLAYER
@SerializedName("Slayer") public static final Skill SLAYER
-
FARMING
@SerializedName("Farming") public static final Skill FARMING
-
RUNECRAFTING
@SerializedName("Runecrafting") public static final Skill RUNECRAFTING
-
HUNTER
@SerializedName("Hunter") public static final Skill HUNTER
-
CONSTRUCTION
@SerializedName("Construction") public static final Skill CONSTRUCTION
-
-
Method Detail
-
values
public static Skill[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Skill c : Skill.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Skill valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forId
public static @Nullable Skill forId(int id)
Gets the skill that corresponds to the unique id.- Parameters:
id
- The unique skill id.- Returns:
- The skill that corresponds to the unique id.
-
getId
public int getId()
Gets the skill's unique id.- Returns:
- The skill's unique id.
-
getChildWidget
public int getChildWidget()
Gets the skill's child widget id.- Returns:
- The skill's child widget id.
-
getName
public @NonNull java.lang.String getName()
Gets the skill's name.- Returns:
- The skill's name.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Skill>
-
getBoostedLevel
public int getBoostedLevel()
-
getLevel
public int getLevel()
-
getExperience
public int getExperience()
-
getExperienceToLevel
public int getExperienceToLevel()
-
-