Magic

public class Magic

Utilities for interacting with the Magic Tab.

Types

SpellBook
Link copied to clipboard
public enum SpellBook
A magic spellbook

Functions

castOn
Link copied to clipboard
static boolean castOn(String spellName, Clickable target)
Casts the specified spell on the specified target.
closeSpellFilters
Link copied to clipboard
static boolean closeSpellFilters()
Closes the spell filters screen
ensureSpellSelected
Link copied to clipboard
static boolean ensureSpellSelected(String name)
Selects the given spell, if it is not already selected
getActiveSpellBook
Link copied to clipboard
static Magic.SpellBook getActiveSpellBook()
Gets the currently active spellbook
getSelectedSpellName
Link copied to clipboard
static Optional<StringgetSelectedSpellName()
Gets the name of the selected spell in the Magic Tab.
isAnySpellSelected
Link copied to clipboard
static boolean isAnySpellSelected()
Determines whether or not a spell is selected.
isSpellFiltersOpen
Link copied to clipboard
static boolean isSpellFiltersOpen()
Checks if the spell filters screen is open
isSpellSelected
Link copied to clipboard
static boolean isSpellSelected(String name)
Checks if a spell with the specified name is selected
selectSpell
Link copied to clipboard
static boolean selectSpell(String name)
Selects a given spell based on its name in the Magic Tab.
static boolean selectSpell(String name, String action)
Selects a given spell based on its name in the Magic Tab.