Search in sources :

Example 6 with CastContext

use of com.elmakers.mine.bukkit.api.action.CastContext in project MagicPlugin by elBukkit.

the class CastingCost method use.

@Override
public void use(Spell spell) {
    CastContext context = spell.getCurrentCast();
    Mage mage = context.getMage();
    Wand wand = context.getWand();
    deduct(mage, wand, spell);
}
Also used : CastContext(com.elmakers.mine.bukkit.api.action.CastContext) Mage(com.elmakers.mine.bukkit.api.magic.Mage) Wand(com.elmakers.mine.bukkit.api.wand.Wand)

Aggregations

CastContext (com.elmakers.mine.bukkit.api.action.CastContext)6 Mage (com.elmakers.mine.bukkit.api.magic.Mage)2 Wand (com.elmakers.mine.bukkit.api.wand.Wand)2 Block (org.bukkit.block.Block)2 ActionContext (com.elmakers.mine.bukkit.action.ActionContext)1 ModifyBlockAction (com.elmakers.mine.bukkit.action.builtin.ModifyBlockAction)1 BlockData (com.elmakers.mine.bukkit.api.block.BlockData)1 BlockRecurse (com.elmakers.mine.bukkit.batch.BlockRecurse)1 UndoBatch (com.elmakers.mine.bukkit.batch.UndoBatch)1 MaterialAndData (com.elmakers.mine.bukkit.block.MaterialAndData)1 Nullable (javax.annotation.Nullable)1 Material (org.bukkit.Material)1 BlockState (org.bukkit.block.BlockState)1 FallingBlock (org.bukkit.entity.FallingBlock)1 ItemStack (org.bukkit.inventory.ItemStack)1