minny.zephyrus.spells
Class Phase

java.lang.Object
  extended by minny.zephyrus.player.LevelManager
      extended by minny.zephyrus.spells.Spell
          extended by minny.zephyrus.spells.Phase

public class Phase
extends Spell

Zephyrus

Author:
minnymin3

Field Summary
 
Fields inherited from class minny.zephyrus.player.LevelManager
plugin
 
Constructor Summary
Phase(Zephyrus plugin)
           
 
Method Summary
 java.lang.String bookText()
          The text that appears in the SpellTome
 boolean canRun(org.bukkit.entity.Player player)
          The boolean dictating if the spell can be run
 java.lang.String failMessage()
          The message that is sent to the player when canRun returns false
 int manaCost()
          The mana cost multiplied by the configurable mana multiplier
 java.lang.String name()
          Defines the name of the spell
 int reqLevel()
          The level required to craft the spell
 Spell reqSpell()
          A spell that is required for crafting this spell
 void run(org.bukkit.entity.Player player)
          The method called when the spell is cast
 java.util.Set<org.bukkit.inventory.ItemStack> spellItems()
          A Set containing all the items required to craft the spell
 
Methods inherited from class minny.zephyrus.spells.Spell
canBind, dropSpell, hasPermission, isLearned, notEnoughMana
 
Methods inherited from class minny.zephyrus.player.LevelManager
displayLevel, displayMana, drainMana, getLevel, getLevel, getLevelProgress, getMana, levelProgress, levelUp, loadMana, resetMana, saveMana
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Phase

public Phase(Zephyrus plugin)
Method Detail

name

public java.lang.String name()
Description copied from class: Spell
Defines the name of the spell

Specified by:
name in class Spell

bookText

public java.lang.String bookText()
Description copied from class: Spell
The text that appears in the SpellTome

Specified by:
bookText in class Spell

reqLevel

public int reqLevel()
Description copied from class: Spell
The level required to craft the spell

Specified by:
reqLevel in class Spell

manaCost

public int manaCost()
Description copied from class: Spell
The mana cost multiplied by the configurable mana multiplier

Specified by:
manaCost in class Spell

run

public void run(org.bukkit.entity.Player player)
Description copied from class: Spell
The method called when the spell is cast

Specified by:
run in class Spell

reqSpell

public Spell reqSpell()
Description copied from class: Spell
A spell that is required for crafting this spell

Overrides:
reqSpell in class Spell

spellItems

public java.util.Set<org.bukkit.inventory.ItemStack> spellItems()
Description copied from class: Spell
A Set containing all the items required to craft the spell

Specified by:
spellItems in class Spell

canRun

public boolean canRun(org.bukkit.entity.Player player)
Description copied from class: Spell
The boolean dictating if the spell can be run

Overrides:
canRun in class Spell

failMessage

public java.lang.String failMessage()
Description copied from class: Spell
The message that is sent to the player when canRun returns false

Overrides:
failMessage in class Spell