Search in sources :

Example 1 with AbsorbAction

use of com.elmakers.mine.bukkit.action.builtin.AbsorbAction in project MagicPlugin by elBukkit.

the class AbsorbSpell method onCast.

@Override
public SpellResult onCast(ConfigurationSection parameters) {
    target();
    ActionHandler handler = new ActionHandler();
    handler.loadAction(new AbsorbAction());
    handler.initialize(this, parameters);
    return handler.start(getCurrentCast(), parameters);
}
Also used : ActionHandler(com.elmakers.mine.bukkit.action.ActionHandler) AbsorbAction(com.elmakers.mine.bukkit.action.builtin.AbsorbAction)

Aggregations

ActionHandler (com.elmakers.mine.bukkit.action.ActionHandler)1 AbsorbAction (com.elmakers.mine.bukkit.action.builtin.AbsorbAction)1