|
||||||||||
| 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
com.nisovin.MagicSpells.Spells.TeachSpell
public class TeachSpell
| 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 | |
|---|---|
TeachSpell(org.bukkit.util.config.Configuration config,
java.lang.String spellName)
|
|
| Method Summary | |
|---|---|
boolean |
castFromConsole(org.bukkit.command.CommandSender sender,
java.lang.String[] args)
This method is called when the spell is cast from the console. |
protected Spell.PostCastAction |
castSpell(org.bukkit.entity.Player player,
Spell.SpellCastState state,
java.lang.String[] args)
This method is called when a player casts a spell, either by command, with a wand item, or otherwise. |
| Methods inherited from class com.nisovin.MagicSpells.CommandSpell |
|---|
canCastByCommand, canCastWithItem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TeachSpell(org.bukkit.util.config.Configuration config,
java.lang.String spellName)
| Method Detail |
|---|
protected Spell.PostCastAction castSpell(org.bukkit.entity.Player player,
Spell.SpellCastState state,
java.lang.String[] args)
Spell
castSpell in class Spellplayer - the player casting the spellstate - the state of the spell cast (normal, on cooldown, missing reagents, etc)args - the spell arguments, if cast by command
public boolean castFromConsole(org.bukkit.command.CommandSender sender,
java.lang.String[] args)
Spell
castFromConsole in class CommandSpellsender - the console sender.args - the command arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||