Package com.kraken.api.service.spell
Enum Spellbook
- java.lang.Object
-
- java.lang.Enum<Spellbook>
-
- com.kraken.api.service.spell.Spellbook
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANCIENTAncient Magicks Spellbook - Unlocked after Desert Treasure I questARCEUUSArceuus Spellbook - No quest requirement, accessible to all playersLUNARLunar Spellbook - Unlocked after Lunar Diplomacy questMODERNStandard/Modern Spellbook - Default spellbook available to all players
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpellbookfromValue(int value)Get the spellbook from its valuestatic SpellbookvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Spellbook[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODERN
public static final Spellbook MODERN
Standard/Modern Spellbook - Default spellbook available to all players
-
ANCIENT
public static final Spellbook ANCIENT
Ancient Magicks Spellbook - Unlocked after Desert Treasure I quest
-
LUNAR
public static final Spellbook LUNAR
Lunar Spellbook - Unlocked after Lunar Diplomacy quest
-
ARCEUUS
public static final Spellbook ARCEUUS
Arceuus Spellbook - No quest requirement, accessible to all players
-
-
Method Detail
-
values
public static Spellbook[] 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 (Spellbook c : Spellbook.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Spellbook 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
-
fromValue
public static Spellbook fromValue(int value)
Get the spellbook from its value- Parameters:
value- The numeric value of the spellbook- Returns:
- The corresponding Rs2Spellbook enum
-
-