getSelectedSpellName

static Optional<StringgetSelectedSpellName()

Gets the name of the selected spell in the Magic Tab.

Return

Optional that contains the spell name. Empty if no spell is selected.