Class LichAmuletEffect
java.lang.Object
com.binaris.wizardry.content.item.artifact.LichAmuletEffect
- All Implemented Interfaces:
IArtifactEffect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPlayerHurt(net.minecraft.world.entity.player.Player player, 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 hurt (if player carries the artifact in their hotbar or accessories) to apply the artifact's effectMethods 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
onHurtEntity, onKillEntity, onSpellPostCast, onSpellPreCast, onTick
-
Constructor Details
-
LichAmuletEffect
public LichAmuletEffect()
-
-
Method Details
-
onPlayerHurt
public void onPlayerHurt(net.minecraft.world.entity.player.Player player, 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 hurt (if player carries the artifact in their hotbar or accessories) to apply the artifact's effect- Specified by:
onPlayerHurtin interfaceIArtifactEffect- Parameters:
player- The player wearing the artifactsource- The damage sourceamount- The amount of damage (mutable)canceled- Whether the damage event has been canceledartifact- The artifact stack
-