|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectminny.zephyrus.player.LevelManager
minny.zephyrus.spells.Spell
public abstract class Spell
Zephyrus
| Field Summary |
|---|
| Fields inherited from class minny.zephyrus.player.LevelManager |
|---|
plugin |
| Constructor Summary | |
|---|---|
Spell(Zephyrus plugin)
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
bookText()
The text that appears in the SpellTome |
boolean |
canBind()
Weather or not the spell can be bound to a wand |
boolean |
canRun(org.bukkit.entity.Player player)
The boolean dictating if the spell can be run |
void |
dropSpell(org.bukkit.block.Block bookshelf,
java.lang.String name,
java.lang.String desc)
The method for destroying a bookshelf and dropping a spelltome |
java.lang.String |
failMessage()
The message that is sent to the player when canRun returns false |
boolean |
hasPermission(org.bukkit.entity.Player player,
Spell spell)
Checks if the player has permission to cast the spell. |
boolean |
isLearned(org.bukkit.entity.Player p,
java.lang.String name)
If the spell is learned |
abstract int |
manaCost()
The mana cost multiplied by the configurable mana multiplier |
abstract java.lang.String |
name()
Defines the name of the spell |
void |
notEnoughMana(org.bukkit.entity.Player p)
|
abstract int |
reqLevel()
The level required to craft the spell |
Spell |
reqSpell()
A spell that is required for crafting this spell |
abstract void |
run(org.bukkit.entity.Player player)
The method called when the spell is cast |
abstract 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.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 |
|---|
public Spell(Zephyrus plugin)
| Method Detail |
|---|
public abstract java.lang.String name()
public abstract java.lang.String bookText()
public abstract int reqLevel()
public abstract int manaCost()
public abstract void run(org.bukkit.entity.Player player)
public abstract java.util.Set<org.bukkit.inventory.ItemStack> spellItems()
public boolean canBind()
public Spell reqSpell()
public boolean canRun(org.bukkit.entity.Player player)
public java.lang.String failMessage()
public boolean isLearned(org.bukkit.entity.Player p,
java.lang.String name)
public void notEnoughMana(org.bukkit.entity.Player p)
public boolean hasPermission(org.bukkit.entity.Player player,
Spell spell)
player - The target playerspell - The target spell
public void dropSpell(org.bukkit.block.Block bookshelf,
java.lang.String name,
java.lang.String desc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||