com.nisovin.MagicSpells
Class Spellbook
java.lang.Object
com.nisovin.MagicSpells.Spellbook
public class Spellbook
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Spellbook
public Spellbook(org.bukkit.entity.Player player,
MagicSpells plugin)
addGrantedSpells
public void addGrantedSpells()
canLearn
public boolean canLearn(Spell spell)
canCast
public boolean canCast(Spell spell)
canTeach
public boolean canTeach(Spell spell)
getSpellByName
public Spell getSpellByName(java.lang.String spellName)
getSpells
public java.util.Set<Spell> getSpells()
nextSpell
public Spell nextSpell(int castItem)
getActiveSpell
public Spell getActiveSpell(int castItem)
hasSpell
public boolean hasSpell(Spell spell)
addSpell
public void addSpell(Spell spell)
addSpell
public void addSpell(Spell spell,
int castItem)
removeSpell
public void removeSpell(Spell spell)
save
public void save()
initPermissions
public static void initPermissions()