Class AutoShieldAmuletEffect
java.lang.Object
com.binaris.wizardry.content.item.artifact.AutoShieldAmuletEffect
- All Implemented Interfaces:
IArtifactEffect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonTick(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack artifact) Called when the player is responsible for killing 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
onHurtEntity, onKillEntity, onPlayerHurt, onSpellPostCast, onSpellPreCast
-
Constructor Details
-
AutoShieldAmuletEffect
public AutoShieldAmuletEffect()
-
-
Method Details
-
onTick
public void onTick(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack artifact) Description copied from interface:IArtifactEffectCalled when the player is responsible for killing an entity (if player carries the artifact in their hotbar or accessories) to apply the artifact's effect.- Specified by:
onTickin interfaceIArtifactEffect- Parameters:
player- The player wearing the artifactlevel- The level the player is inartifact- The artifact stack
-