Package net.storm.api.magic
Enum Class SpellBook.Lunar
- All Implemented Interfaces:
Serializable,Comparable<SpellBook.Lunar>,Constable,Spell
- Enclosing class:
SpellBook
The Lunar spellbook containing support and utility spells.
This spellbook is unlocked by completing the Lunar Diplomacy quest. It includes:
- Group teleports - Teleport yourself and nearby players
- Support spells - Cure poison, heal, share potions
- Skilling spells - Tan leather, superglass make, plank make
- Utility spells - NPC Contact, Humidify, Spin Flax
- Combat support - Vengeance, Energy Transfer
Most Lunar spells require Astral runes in addition to other rune types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCast()Checks whether this spell can currently be cast.Gets the spellbook that contains this spell.booleanChecks if the player has all required runes to cast this spell.static SpellBook.LunarReturns the enum constant of this class with the specified name.static SpellBook.Lunar[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.storm.api.magic.Spell
cast, cast, castOn, getAutocastIndex, getComponent, getInterfaceAddress, getLevel, getMenuIdentifier, getRequirements
-
Enum Constant Details
-
LUNAR_HOME_TELEPORT
-
MOONCLAN_TELEPORT
-
TELE_GROUP_MOONCLAN
-
OURANIA_TELEPORT
-
WATERBIRTH_TELEPORT
-
TELE_GROUP_WATERBIRTH
-
BARBARIAN_TELEPORT
-
TELE_GROUP_BARBARIAN
-
KHAZARD_TELEPORT
-
TELE_GROUP_KHAZARD
-
FISHING_GUILD_TELEPORT
-
TELE_GROUP_FISHING_GUILD
-
CATHERBY_TELEPORT
-
TELE_GROUP_CATHERBY
-
ICE_PLATEAU_TELEPORT
-
TELE_GROUP_ICE_PLATEAU
-
MONSTER_EXAMINE
-
CURE_OTHER
-
CURE_ME
-
CURE_GROUP
-
STAT_SPY
-
DREAM
-
STAT_RESTORE_POT_SHARE
-
BOOST_POTION_SHARE
-
ENERGY_TRANSFER
-
HEAL_OTHER
-
VENGEANCE_OTHER
-
VENGEANCE
-
HEAL_GROUP
-
BAKE_PIE
-
GEOMANCY
-
CURE_PLANT
-
NPC_CONTACT
-
HUMIDIFY
-
HUNTER_KIT
-
SPIN_FLAX
-
SUPERGLASS_MAKE
-
TAN_LEATHER
-
STRING_JEWELLERY
-
MAGIC_IMBUE
-
FERTILE_SOIL
-
PLANK_MAKE
-
RECHARGE_DRAGONSTONE
-
SPELLBOOK_SWAP
-
-
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
-
getSpellBook
Gets the spellbook that contains this spell.- Specified by:
getSpellBookin interfaceSpell- Returns:
SpellBook.LUNAR
-
canCast
public boolean canCast()Checks whether this spell can currently be cast.This method verifies all requirements including:
- The correct spellbook is active
- The player has the required Magic level
- The player has all required runes
- The player meets any quest requirements
- The player is in a members world (if required)
- Any special equipment requirements are met
For Lunar spells, this checks:
- The Lunar spellbook is active
- Player is in a members world
- Home Teleport cooldown (for Lunar Home Teleport only)
- Magic level requirement
- Rune requirements
- Additional requirements (e.g., Ourania Teleport unlock)
-
haveRunesAvailable
public boolean haveRunesAvailable()Checks if the player has all required runes to cast this spell.- Returns:
trueif all rune requirements are met,falseotherwise
-