Interface IArtifactEffect

All Known Implementing Classes:
AmuletPotentialEffect, ArcaneDefenseAmuletEffect, ArcaneFrostRingEffect, AutoShieldAmuletEffect, CondensingRingEffect, ExtractionRingEffect, FeedingCharmEffect, FireCloakingAmuletEffect, FrostWardingAmuletEffect, HungerCastingCharmEffect, LeechingRingEffect, LichAmuletEffect, LightningMeleeEffect, PaladinRingEffect, PoisonRingEffect, QuickArtifactEffect, ShatteringRingEffect, SoulBindingRingEffect

public interface IArtifactEffect
Interface representing the effects of artifacts in the mod. This provides methods that can be overridden to define custom behavior for artifacts based on events. These methods are loaded by the ArtifactItem class to register the effects inside the event bus.

You have all the freedom to add a custom implementation of this interface for your own artifacts, but if you do so, you must ensure to load the events yourself.

  • Method Details

    • onTick

      default void onTick(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack)
    • onKillEntity

      default void onKillEntity(EBLivingDeathEvent event, net.minecraft.world.item.ItemStack stack)
    • onSpellPreCast

      default void onSpellPreCast(SpellCastEvent.Pre event, net.minecraft.world.item.ItemStack stack)
    • onSpellPostCast

      default void onSpellPostCast(SpellCastEvent.Post event, net.minecraft.world.item.ItemStack stack)
    • onHurtEntity

      default void onHurtEntity(EBLivingHurtEvent event, net.minecraft.world.item.ItemStack stack)
    • onPlayerHurt

      default void onPlayerHurt(EBLivingHurtEvent event, net.minecraft.world.item.ItemStack stack)