Class LeechingRingEffect

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

public class LeechingRingEffect extends Object implements IArtifactEffect
  • Constructor Details

    • LeechingRingEffect

      public LeechingRingEffect()
  • Method Details

    • onHurtEntity

      public void onHurtEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.LivingEntity damagedEntity, net.minecraft.world.damagesource.DamageSource source, com.google.common.util.concurrent.AtomicDouble amount, AtomicBoolean canceled, net.minecraft.world.item.ItemStack artifact)
      Description copied from interface: IArtifactEffect
      Called when the player is responsible for hurting an entity (if player carries the artifact in their hotbar or accessories) to apply the artifact's effect.
      Specified by:
      onHurtEntity in interface IArtifactEffect
      Parameters:
      player - The player wearing the artifact
      damagedEntity - The entity that was hurt
      source - The damage source
      amount - The amount of damage (mutable)
      canceled - Whether the damage event has been canceled
      artifact - The artifact stack