Class ContainmentEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
com.binaris.wizardry.api.content.effect.MagicMobEffect
com.binaris.wizardry.content.effect.ContainmentEffect
- All Implemented Interfaces:
CustomMobEffectParticles,IEventEffect<MobEffectContext>,IMobEventEffect
-
Nested Class Summary
Nested classes/interfaces inherited from class com.binaris.wizardry.api.content.effect.MagicMobEffect
MagicMobEffect.EventCaller -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffectTick(@NotNull net.minecraft.world.entity.LivingEntity target, int amplifier) static floatgetContainmentDistance(int effectStrength) booleanisDurationEffectTick(int duration, int amplifier) static voidonLivingUpdateEvent(EBLivingTick event) voidspawnCustomParticle(net.minecraft.world.level.Level world, double x, double y, double z) Methods inherited from class com.binaris.wizardry.api.content.effect.MagicMobEffect
hideVanillaParticles, onParticleTick, particleCount, particleInterval, particleOffset, shouldHideVanillaParticlesMethods inherited from class net.minecraft.world.effect.MobEffect
addAttributeModifier, addAttributeModifiers, applyInstantenousEffect, byId, createFactorData, getAttributeModifiers, getAttributeModifierValue, getCategory, getColor, getDescriptionId, getDisplayName, getId, getIdFromNullable, getOrCreateDescriptionId, isBeneficial, isInstantenous, removeAttributeModifiers, setFactorDataFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.binaris.wizardry.core.IEventEffect
onHurtEntity, onKillEntity, onSpellPostCast, onSpellPreCast, onTick, onUserHurt
-
Constructor Details
-
ContainmentEffect
public ContainmentEffect()
-
-
Method Details
-
getContainmentDistance
public static float getContainmentDistance(int effectStrength) -
onLivingUpdateEvent
-
applyEffectTick
public void applyEffectTick(@NotNull @NotNull net.minecraft.world.entity.LivingEntity target, int amplifier) - Overrides:
applyEffectTickin classnet.minecraft.world.effect.MobEffect
-
isDurationEffectTick
public boolean isDurationEffectTick(int duration, int amplifier) - Overrides:
isDurationEffectTickin classnet.minecraft.world.effect.MobEffect
-
spawnCustomParticle
public void spawnCustomParticle(net.minecraft.world.level.Level world, double x, double y, double z)
-