com.nisovin.MagicSpells
Class Spellbook

java.lang.Object
  extended by com.nisovin.MagicSpells.Spellbook

public class Spellbook
extends java.lang.Object


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

Constructor Detail

Spellbook

public Spellbook(org.bukkit.entity.Player player,
                 MagicSpells plugin)
Method Detail

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()