Class HungerMobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
net.minecraft.world.effect.HungerMobEffect
- All Implemented Interfaces:
FeatureElement, IMobEffectExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class MobEffect
MobEffect.AttributeTemplate -
Field Summary
Fields inherited from class MobEffect
CODEC, STREAM_CODECFields inherited from interface FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyEffectTick(ServerLevel serverLevel, 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
-
Constructor Details
-
HungerMobEffect
-
-
Method Details
-
applyEffectTick
- Overrides:
applyEffectTickin classMobEffect
-
shouldApplyEffectTickThisTick
public boolean shouldApplyEffectTickThisTick(int tickCount, int amplification) - Overrides:
shouldApplyEffectTickThisTickin classMobEffect
-