|
||||||||||
| 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.ChanneledSpell
com.nisovin.MagicSpells.Spells.SummonSpell
public class SummonSpell
| 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 | |
|---|---|
SummonSpell(org.bukkit.util.config.Configuration config,
java.lang.String spellName)
|
|
| Method Summary | |
|---|---|
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. |
protected void |
finishSpell(java.lang.String key,
org.bukkit.Location location)
This method is called when the number of channelers for the session meets the required amount, and the spell is ready to perform its action. |
void |
onPlayerCommandPreprocess(org.bukkit.event.player.PlayerCommandPreprocessEvent event)
|
| Methods inherited from class com.nisovin.MagicSpells.ChanneledSpell |
|---|
addChanneler, canCastByCommand, canCastWithItem, getChannelerCount, onPlayerMove, onPlayerQuit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SummonSpell(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
protected void finishSpell(java.lang.String key,
org.bukkit.Location location)
ChanneledSpell
finishSpell in class ChanneledSpellkey - the name of the channeling sessionlocation - the location of the first channeling playerpublic void onPlayerCommandPreprocess(org.bukkit.event.player.PlayerCommandPreprocessEvent event)
onPlayerCommandPreprocess in class Spell
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||