Class CastItemUtils
java.lang.Object
com.binaris.wizardry.api.content.util.CastItemUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyCooldownForfeit(net.minecraft.world.entity.player.Player caster, int cooldownTicks) static intcalcCastCooldown(Spell spell, SpellModifiers modifiers) static intcalcCastCost(Spell spell, SpellModifiers modifiers) static intcalcCastProgression(Spell spell, SpellModifiers modifiers) static intcalcCharge(Spell spell, SpellModifiers modifiers) static SpellModifierscalculateModifiers(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player, Spell spell) static booleanexecuteSpellCast(SpellCastEvent.Sources source, Spell spell, PlayerCastContext ctx) static booleanfireSpellCastEvent(SpellCastEvent.Sources source, Spell spell, PlayerCastContext ctx) static intgetAccumulatedCastCost(Spell spell, int castingTick, int totalCost) static intgetDistributedCastCost(int cost, int castingTick) static voidsendSpellCastPacket(net.minecraft.world.entity.player.Player caster, Spell spell, PlayerCastContext ctx) static voidtrackSpellUsage(net.minecraft.world.entity.player.Player caster, Spell spell)
-
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
-
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
-
getDistributedCastCost
public static int getDistributedCastCost(int cost, int castingTick) -
calcCastProgression
-
calcCastCooldown
-
calcCastCost
-
calcCharge
-