public interface IMagicAPI
Modifier and Type | Method and Description |
---|---|
boolean |
canCast(Spell spell)
Returns whether or not the given spell can be cast.
|
boolean |
cast(Spell spell)
Selects the "Cast" menu action on the spell widget.
|
boolean |
cast(Spell spell,
java.lang.String action)
Selects the given menu action on the spell widget.
|
Spell |
getAutoCastSpell()
Gets the selected auto casting spell.
|
Spell.Book |
getCurrentSpellBook()
Gets the currently active spell book.
|
boolean |
isSpellSelected()
Gets whether or not a spell is selected in the magic tab.
|
boolean |
setAutoCast(Spell spell,
boolean defensive)
Sets the given spell to be auto casted.
|
boolean isSpellSelected()
Spell getAutoCastSpell()
boolean canCast(Spell spell)
spell
- the spell, e.g. Spell.Modern#WIND_STRIKE
boolean cast(Spell spell)
spell
- the spellboolean cast(Spell spell, java.lang.String action)
spell
- the spellaction
- the actionboolean setAutoCast(Spell spell, boolean defensive)
spell
- the spell to be auto casteddefensive
- whether to cast defensivelySpell.Book getCurrentSpellBook()