Class AmuletPotentialEffect
java.lang.Object
com.binaris.wizardry.content.item.artifact.AmuletPotentialEffect
- All Implemented Interfaces:
IArtifactEffect
-
Field Summary
Fields -
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
-
Field Details
-
PROBABILITY_EFFECT
public static float PROBABILITY_EFFECT
-
-
Constructor Details
-
AmuletPotentialEffect
public AmuletPotentialEffect()
-
-
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
-