Class CastItemUtils

java.lang.Object
com.binaris.wizardry.api.content.util.CastItemUtils

public final class CastItemUtils extends Object
  • Method Details

    • fireSpellCastEvent

      public static boolean fireSpellCastEvent(SpellCastEvent.Sources source, Spell spell, PlayerCastContext ctx)
    • applyCooldownForfeit

      public static void applyCooldownForfeit(net.minecraft.world.entity.player.Player caster, int cooldownTicks)
    • trackSpellUsage

      public static void trackSpellUsage(net.minecraft.world.entity.player.Player caster, Spell spell)
    • executeSpellCast

      public static boolean executeSpellCast(SpellCastEvent.Sources source, Spell spell, PlayerCastContext ctx)
    • sendSpellCastPacket

      public static void sendSpellCastPacket(net.minecraft.world.entity.player.Player caster, Spell spell, PlayerCastContext ctx)
    • calculateModifiers

      public static SpellModifiers calculateModifiers(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player, Spell spell)
    • getAccumulatedCastCost

      public static int getAccumulatedCastCost(Spell spell, int castingTick, int totalCost)
    • getDistributedCastCost

      public static int getDistributedCastCost(int cost, int castingTick)
    • calcCastProgression

      public static int calcCastProgression(Spell spell, SpellModifiers modifiers)
    • calcCastCooldown

      public static int calcCastCooldown(Spell spell, SpellModifiers modifiers)
    • calcCastCost

      public static int calcCastCost(Spell spell, SpellModifiers modifiers)
    • calcCharge

      public static int calcCharge(Spell spell, SpellModifiers modifiers)