Spell
A spell from any spellbook. Cast it with MagicAPI.cast or with its own methods.
InterfaceRLPlugins API
public interface SpellImplemented by Ancient, Lunar, Necromancy, Standard
Members
Methods
- booleancanCast()
Whether it can cast.
- voidcast()
Cast.
- voidcastOn(ItemEx)
Cast on.
- voidcastOn(NPC)
Cast on.
- voidcastOn(NpcEx)
Cast on.
- voidcastOn(Player)
Cast on.
- voidcastOn(PlayerEx)
Cast on.
- voidcastOn(TileItemEx)
Cast on.
- voidcastOn(TileObjectEx)
Cast on.
- intgetAction()
The action.
- intgetAutoCastIndex()
The auto cast index.
- intgetLevel()
The level.
- intgetSpellbookIndex()
The spellbook index.
- intgetSpellIndex()
The spell index.
- intgetWidget()
The widget.
- voidsetAutoCast()
Sets the auto cast.
- voidsetDefensiveAutoCast()
Sets the defensive auto cast.
canCast()
public boolean canCast()Whether it can cast.
cast()
public void cast()Cast.
castOn(ItemEx)
public void castOn(ItemEx item)Cast on.
Parameters
item- Item.
castOn(NPC)
public void castOn(NPC npc)Cast on.
Parameters
npc- Npc.
castOn(NpcEx)
public void castOn(NpcEx npc)Cast on.
Parameters
npc- Npc.
castOn(Player)
public void castOn(Player player)Cast on.
Parameters
player- Player.
castOn(PlayerEx)
public void castOn(PlayerEx player)Cast on.
Parameters
player- Player.
castOn(TileItemEx)
public void castOn(TileItemEx tileItem)Cast on.
Parameters
tileItem- Tile item.
castOn(TileObjectEx)
public void castOn(TileObjectEx tileObject)Cast on.
Parameters
tileObject- Tile object.
getAction()
public int getAction()The action.
getAutoCastIndex()
public int getAutoCastIndex()The auto cast index.
getLevel()
public int getLevel()The level.
getSpellbookIndex()
public int getSpellbookIndex()The spellbook index.
getSpellIndex()
public int getSpellIndex()The spell index.
getWidget()
public int getWidget()The widget.
setAutoCast()
public void setAutoCast()Sets the auto cast.
setDefensiveAutoCast()
public void setDefensiveAutoCast()Sets the defensive auto cast.
Also allowed
Every class has these, as in plain Java.
equals, toString