Package com.epicbot.api.shared.methods
Interface IMagicAPI
public interface IMagicAPI
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether or not the given spell can be cast.booleanSelects the "Cast" menu action on the spell widget.booleanSelects the given menu action on the spell widget.Gets the selected auto casting spell.Gets the currently active spell book.booleanGets whether or not a spell is selected in the magic tab.booleansetAutoCast(Spell spell, boolean defensive) Sets the given spell to be auto casted.
-
Method Details
-
isSpellSelected
boolean isSpellSelected()Gets whether or not a spell is selected in the magic tab.- Returns:
- true if a spell is selected, false otherwise
-
getAutoCastSpell
Spell getAutoCastSpell()Gets the selected auto casting spell.- Returns:
- the spell or null if no spell is selected to be auto casted
-
getCurrentSpellBook
Spell.Book getCurrentSpellBook()Gets the currently active spell book.- Returns:
- the spell book
-