Class PoisonMobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
net.minecraft.world.effect.PoisonMobEffect
- All Implemented Interfaces:
FeatureElement, IMobEffectExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class MobEffect
MobEffect.AttributeTemplate -
Field Summary
FieldsFields inherited from class MobEffect
CODEC, STREAM_CODECFields inherited from interface FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyEffectTick(ServerLevel level, LivingEntity mob, int amplification) booleanshouldApplyEffectTickThisTick(int tickCount, int amplification) Methods inherited from class MobEffect
addAttributeModifier, addAttributeModifier, addAttributeModifiers, applyInstantenousEffect, createModifiers, createParticleOptions, getBlendInDurationTicks, getBlendOutAdvanceTicks, getBlendOutDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getOrCreateDescriptionId, isBeneficial, isInstantenous, onEffectAdded, onEffectStarted, onMobHurt, onMobRemoved, removeAttributeModifiers, requiredFeatures, requiredFeatures, setBlendDuration, setBlendDuration, withSoundOnAddedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FeatureElement
isEnabledMethods inherited from interface IMobEffectExtension
getSortOrder
-
Field Details
-
DAMAGE_INTERVAL
public static final int DAMAGE_INTERVAL- See Also:
-
-
Constructor Details
-
PoisonMobEffect
-
-
Method Details
-
applyEffectTick
- Overrides:
applyEffectTickin classMobEffect
-
shouldApplyEffectTickThisTick
public boolean shouldApplyEffectTickThisTick(int tickCount, int amplification) - Overrides:
shouldApplyEffectTickThisTickin classMobEffect
-