Class InstantenousMobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
net.minecraft.world.effect.InstantenousMobEffect
- All Implemented Interfaces:
FeatureElement, IMobEffectExtension
- Direct Known Subclasses:
HealOrHarmMobEffect, SaturationMobEffect
-
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 TypeMethodDescriptionbooleanbooleanshouldApplyEffectTickThisTick(int remainingDuration, int amplification) Methods inherited from class MobEffect
addAttributeModifier, addAttributeModifier, addAttributeModifiers, applyEffectTick, applyInstantenousEffect, createModifiers, createParticleOptions, getBlendInDurationTicks, getBlendOutAdvanceTicks, getBlendOutDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getOrCreateDescriptionId, isBeneficial, 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
-
InstantenousMobEffect
-
-
Method Details
-
isInstantenous
public boolean isInstantenous()- Overrides:
isInstantenousin classMobEffect
-
shouldApplyEffectTickThisTick
public boolean shouldApplyEffectTickThisTick(int remainingDuration, int amplification) - Overrides:
shouldApplyEffectTickThisTickin classMobEffect
-