|
||||||||||
| 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.InstantSpell
com.nisovin.MagicSpells.Spells.DrainlifeSpell
public class DrainlifeSpell
| 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.InstantSpell |
|---|
range |
| Fields inherited from class com.nisovin.MagicSpells.Spell |
|---|
broadcastRange, castItem, cooldown, cost, description, healthCost, internalName, manaCost, name, strCastOthers, strCastSelf, strCost |
| Constructor Summary | |
|---|---|
DrainlifeSpell(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. |
| Methods inherited from class com.nisovin.MagicSpells.InstantSpell |
|---|
canCastByCommand, canCastWithItem, getTargetedEntity, getTargetedPlayer, inRange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrainlifeSpell(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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||