Package net.storm.api.magic
Enum Class SpellBook.Standard
- All Implemented Interfaces:
Serializable,Comparable<SpellBook.Standard>,Constable,Spell
- Enclosing class:
SpellBook
The Standard spellbook containing basic magic spells.
This is the default spellbook available to all players. It includes:
- Strike, Bolt, Blast, Wave, and Surge combat spells
- God spells (Saradomin Strike, Claws of Guthix, Flames of Zamorak)
- Teleportation spells to major cities
- Enchantment spells for jewelry and bolts
- Utility spells (Alchemy, Superheat, Bones to Bananas)
- Curse spells (Confuse, Weaken, Bind, etc.)
-
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 the required equipment to cast this spell.booleanhaveItem()Checks if the player has required items in inventory for this spell.booleanChecks if the player has all required runes to cast this spell.static SpellBook.StandardReturns the enum constant of this class with the specified name.static SpellBook.Standard[]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
-
HOME_TELEPORT
-
VARROCK_TELEPORT
-
LUMBRIDGE_TELEPORT
-
FALADOR_TELEPORT
-
TELEPORT_TO_HOUSE
-
CAMELOT_TELEPORT
-
TELEPORT_TO_KOUREND
-
ARDOUGNE_TELEPORT
-
TELEPORT_TO_CIVITAS_ILLA_FORTIS
-
WATCHTOWER_TELEPORT
-
TROLLHEIM_TELEPORT
-
TELEPORT_TO_APE_ATOLL
-
TELEOTHER_LUMBRIDGE
-
TELEOTHER_FALADOR
-
TELEPORT_TO_BOUNTY_TARGET
-
TELEOTHER_CAMELOT
-
WIND_STRIKE
-
WATER_STRIKE
-
EARTH_STRIKE
-
FIRE_STRIKE
-
WIND_BOLT
-
WATER_BOLT
-
EARTH_BOLT
-
FIRE_BOLT
-
WIND_BLAST
-
WATER_BLAST
-
EARTH_BLAST
-
FIRE_BLAST
-
WIND_WAVE
-
WATER_WAVE
-
EARTH_WAVE
-
FIRE_WAVE
-
WIND_SURGE
-
WATER_SURGE
-
EARTH_SURGE
-
FIRE_SURGE
-
SARADOMIN_STRIKE
-
CLAWS_OF_GUTHIX
-
FLAMES_OF_ZAMORAK
-
CRUMBLE_UNDEAD
-
IBAN_BLAST
-
MAGIC_DART
-
CONFUSE
-
WEAKEN
-
CURSE
-
BIND
-
SNARE
-
VULNERABILITY
-
ENFEEBLE
-
ENTANGLE
-
STUN
-
TELE_BLOCK
-
CHARGE
-
BONES_TO_BANANAS
-
LOW_LEVEL_ALCHEMY
-
SUPERHEAT_ITEM
-
HIGH_LEVEL_ALCHEMY
-
BONES_TO_PEACHES
-
BOLT_ENCHANT
-
LVL_1_ENCHANT
-
LVL_2_ENCHANT
-
LVL_3_ENCHANT
-
CHARGE_WATER_ORB
-
LVL_4_ENCHANT
-
CHARGE_EARTH_ORB
-
CHARGE_FIRE_ORB
-
CHARGE_AIR_ORB
-
LVL_5_ENCHANT
-
LVL_6_ENCHANT
-
LVL_7_ENCHANT
-
TELEKINETIC_GRAB
-
TELE_BOAT_TO_ME
-
TELE_ME_TO_BOAT
-
MONSTER_INSPECT
-
-
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.STANDARD
-
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 Standard spells, this checks:
- The Standard spellbook is active
- Player is in a members world (if required)
- Home Teleport cooldown (for Home Teleport only)
- Magic level requirement
- Quest requirements for specific teleports
- Equipment requirements (god staves, Iban's staff, etc.)
- Item requirements (unpowered orbs, bananas)
- Rune requirements
-
haveRunesAvailable
public boolean haveRunesAvailable()Checks if the player has all required runes to cast this spell.This method iterates through all rune requirements and verifies that each requirement is met using inventory runes, rune pouch, or equipped items that provide unlimited runes.
- Returns:
trueif all rune requirements are met,falseotherwise
-
haveEquipment
public boolean haveEquipment()Checks if the player has the required equipment to cast this spell.Some spells require specific weapons or items to be equipped:
- Iban Blast - Requires Iban's staff
- Magic Dart - Requires Slayer staff or Staff of the Dead variant
- Saradomin Strike - Requires Saradomin staff or Staff of Light
- Flames of Zamorak - Requires Zamorak staff or Staff of the Dead variant
- Claws of Guthix - Requires Guthix staff, Void knight mace, or Staff of Balance
- Returns:
trueif equipment requirements are met,falseotherwise
-
haveItem
public boolean haveItem()Checks if the player has required items in inventory for this spell.Some spells require specific items:
- Teleport to Ape Atoll - Requires a banana
- Charge Orb spells - Require unpowered orbs
- Returns:
trueif item requirements are met,falseotherwise
-