Package com.binaris.wizardry.core
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 Summary
Modifier and TypeMethodDescriptiondefault voidonHurtEntity(EBLivingHurtEvent event, net.minecraft.world.item.ItemStack stack) default voidonKillEntity(EBLivingDeathEvent event, net.minecraft.world.item.ItemStack stack) default voidonPlayerHurt(EBLivingHurtEvent event, net.minecraft.world.item.ItemStack stack) default voidonSpellPostCast(SpellCastEvent.Post event, net.minecraft.world.item.ItemStack stack) default voidonSpellPreCast(SpellCastEvent.Pre event, net.minecraft.world.item.ItemStack stack) default voidonTick(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack)
-
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
-
onSpellPreCast
-
onSpellPostCast
-
onHurtEntity
-
onPlayerHurt
-