Class HungerCastingCharmEffect

java.lang.Object
com.binaris.wizardry.content.item.artifact.HungerCastingCharmEffect
All Implemented Interfaces:
IArtifactEffect

public class HungerCastingCharmEffect extends Object implements IArtifactEffect
  • Constructor Details

    • HungerCastingCharmEffect

      public HungerCastingCharmEffect()
  • Method Details

    • onSpellPreCast

      public void onSpellPreCast(SpellCastEvent.Pre event, net.minecraft.world.item.ItemStack artifact)
      Description copied from interface: IArtifactEffect
      Called before a spell is cast (if player carries the artifact in their hotbar or accessories) to apply the artifact's effect.
      Specified by:
      onSpellPreCast in interface IArtifactEffect
      Parameters:
      event - The spell cast event
      artifact - The artifact stack