Package net.storm.api.magic
Enum Class SpellBook
- All Implemented Interfaces:
Serializable,Comparable<SpellBook>,Constable
Enumeration representing the four spellbooks available in the game.
Each spellbook contains a different set of spells with unique functionality:
STANDARD- The default spellbook available to all players, containing basic combat spells, teleports, and utility spells like alchemy.ANCIENT- Unlocked after completing Desert Treasure, featuring powerful combat spells with special effects (freeze, poison, heal) and Zarosian teleports.LUNAR- Unlocked after completing Lunar Diplomacy, focused on skilling and support spells with group teleports and utility magic.NECROMANCY- The Arceuus spellbook, containing reanimation spells, demonbane spells, and various utility magic for Prayer training.
Each spellbook is represented as a nested enum implementing the Spell interface,
allowing type-safe access to all spells within that spellbook.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe Ancient Magicks spellbook containing powerful Zarosian spells.static enumThe Lunar spellbook containing support and utility spells.static enumThe Necromancy (Arceuus) spellbook containing dark magic and reanimation spells.static enumThe Standard spellbook containing basic magic spells.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Ancient spellbook - unlocked via Desert Treasure quest.The Lunar spellbook - unlocked via Lunar Diplomacy quest.The Necromancy (Arceuus) spellbook - available to those with Arceuus favor.The Standard spellbook - default spellbook available to all players. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpellBookGets the currently active spellbook for the player.static SpellBookReturns the enum constant of this class with the specified name.static SpellBook[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
The Standard spellbook - default spellbook available to all players. -
ANCIENT
The Ancient spellbook - unlocked via Desert Treasure quest. -
LUNAR
The Lunar spellbook - unlocked via Lunar Diplomacy quest. -
NECROMANCY
The Necromancy (Arceuus) spellbook - available to those with Arceuus favor.
-
-
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
-
getCurrent
Gets the currently active spellbook for the player.This method reads the spellbook varbit to determine which spellbook is currently selected.
- Returns:
- the current
SpellBook, ornullif unable to determine
-