public class Magic
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Magic.MagicSpell |
static class |
Magic.SpellBook |
Constructor and Description |
---|
Magic(ClientContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
castHomeTeleport()
Will cast the home teleport spell on any spell book
|
boolean |
castSpellOnce(java.lang.String spellName)
returns {true} if cast was successful, {false} otherwise
|
boolean |
castSpellOnItem(java.lang.String spellName,
int itemId)
will cast {spellname} on specified item with id={id} in your inventory, returns {true} if cast was successful, {false} otherwise
|
boolean |
castSpellOnNPC(java.lang.String spellName,
SimpleNpc npc)
will cast {spellname} on specified {npc}, returns {true} if cast was successful, {false} otherwise
|
boolean |
castSpellOnPlayer(java.lang.String spellName,
SimplePlayer player)
will cast {spellname} on specified {player}, returns {true} if cast was successful, {false} otherwise
|
Magic.SpellBook |
spellBook() |
public Magic(ClientContext ctx)
public boolean castSpellOnNPC(java.lang.String spellName, SimpleNpc npc)
spellName
- npc
- public boolean castSpellOnPlayer(java.lang.String spellName, SimplePlayer player)
spellName
- player
- public boolean castSpellOnce(java.lang.String spellName)
spellName
- public boolean castSpellOnItem(java.lang.String spellName, int itemId)
spellName
- itemId
- public boolean castHomeTeleport()
public Magic.SpellBook spellBook()