Class PoisonRingEffect
java.lang.Object
com.binaris.wizardry.content.item.artifact.PoisonRingEffect
- All Implemented Interfaces:
IArtifactEffect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonHurtEntity(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) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.binaris.wizardry.core.IArtifactEffect
onKillEntity, onPlayerHurt, onSpellPostCast, onSpellPreCast, onTick
-
Constructor Details
-
PoisonRingEffect
public PoisonRingEffect()
-
-
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:IArtifactEffectCalled 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:
onHurtEntityin interfaceIArtifactEffect- Parameters:
player- The player wearing the artifactdamagedEntity- The entity that was hurtsource- The damage sourceamount- The amount of damage (mutable)canceled- Whether the damage event has been canceledartifact- The artifact stack
-