Package net.storm.api.magic
Enum Class SpellBook.Necromancy
- All Implemented Interfaces:
Serializable,Comparable<SpellBook.Necromancy>,Constable,Spell
- Enclosing class:
SpellBook
The Necromancy (Arceuus) spellbook containing dark magic and reanimation spells.
This spellbook is available to players who have gained favor with the Arceuus House in Great Kourend. It includes:
- Reanimation spells - Reanimate ensouled heads for Prayer experience
- Demonbane spells - Combat spells effective against demons
- Grasp spells - Combat spells that bind and damage enemies
- Corruption spells - Reduce enemy defence and stats
- Resurrection spells - Summon thralls to fight alongside you
- Teleport spells - Various locations including Barrows
- Utility spells - Shadow Veil, Death Charge, Demonic Offering
Many advanced spells in this book require completion of the "A Kingdom Divided" quest.
-
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.NecromancyReturns the enum constant of this class with the specified name.static SpellBook.Necromancy[]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
-
ARCEUUS_HOME_TELEPORT
-
ARCEUUS_LIBRARY_TELEPORT
-
DRAYNOR_MANOR_TELEPORT
-
BATTLEFRONT_TELEPORT
-
MIND_ALTAR_TELEPORT
-
RESPAWN_TELEPORT
-
SALVE_GRAVEYARD_TELEPORT
-
FENKENSTRAINS_CASTLE_TELEPORT
-
WEST_ARDOUGNE_TELEPORT
-
HARMONY_ISLAND_TELEPORT
-
CEMETERY_TELEPORT
-
BARROWS_TELEPORT
-
APE_ATOLL_TELEPORT
-
GHOSTLY_GRASP
-
SKELETAL_GRASP
-
UNDEAD_GRASP
-
INFERIOR_DEMONBANE
-
SUPERIOR_DEMONBANE
-
DARK_DEMONBANE
-
LESSER_CORRUPTION
-
GREATER_CORRUPTION
-
RESURRECT_LESSER_GHOST
-
RESURRECT_LESSER_SKELETON
-
RESURRECT_LESSER_ZOMBIE
-
RESURRECT_SUPERIOR_GHOST
-
RESURRECT_SUPERIOR_SKELETON
-
RESURRECT_SUPERIOR_ZOMBIE
-
RESURRECT_GREATER_GHOST
-
RESURRECT_GREATER_SKELETON
-
RESURRECT_GREATER_ZOMBIE
-
DARK_LURE
-
MARK_OF_DARKNESS
-
WARD_OF_ARCEUUS
-
BASIC_REANIMATION
-
ADEPT_REANIMATION
-
EXPERT_REANIMATION
-
MASTER_REANIMATION
-
DEMONIC_OFFERING
-
SINISTER_OFFERING
-
SHADOW_VEIL
-
VILE_VIGOUR
-
DEGRIME
-
RESURRECT_CROPS
-
DEATH_CHARGE
-
-
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.NECROMANCY
-
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 Necromancy spells, this checks:
- The Necromancy (Arceuus) spellbook is active
- Player is in a members world
- Home Teleport cooldown (for Arceuus Home Teleport only)
- Magic level requirement
- Quest requirements (many spells require "A Kingdom Divided")
- Cooldown requirements (Death Charge, Vile Vigour, etc.)
- Item requirements (Book of the Dead for resurrections)
- Rune requirements
-
haveRunesAvailable
public boolean haveRunesAvailable()Checks if the player has all required runes to cast this spell.- Returns:
trueif all rune requirements are met,falseotherwise
-