|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nisovin.MagicSpells.Spell
com.nisovin.MagicSpells.CommandSpell
public abstract class CommandSpell
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.nisovin.MagicSpells.Spell |
|---|
Spell.PostCastAction, Spell.SpellCastState |
| Field Summary |
|---|
| Fields inherited from class com.nisovin.MagicSpells.Spell |
|---|
broadcastRange, castItem, cooldown, cost, description, healthCost, internalName, manaCost, name, strCastOthers, strCastSelf, strCost |
| Constructor Summary | |
|---|---|
CommandSpell(org.bukkit.util.config.Configuration config,
java.lang.String spellName)
|
|
| Method Summary | |
|---|---|
boolean |
canCastByCommand()
|
boolean |
canCastWithItem()
|
abstract boolean |
castFromConsole(org.bukkit.command.CommandSender sender,
java.lang.String[] args)
This method is called when the spell is cast from the console. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandSpell(org.bukkit.util.config.Configuration config,
java.lang.String spellName)
| Method Detail |
|---|
public boolean canCastWithItem()
canCastWithItem in class Spellpublic boolean canCastByCommand()
canCastByCommand in class Spell
public abstract boolean castFromConsole(org.bukkit.command.CommandSender sender,
java.lang.String[] args)
Spell
castFromConsole in class Spellsender - the console sender.args - the command arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||