Class HealOrHarmMobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
net.minecraft.world.effect.InstantenousMobEffect
net.minecraft.world.effect.HealOrHarmMobEffect
- 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) voidapplyInstantenousEffect(ServerLevel serverLevel, @Nullable Entity source, @Nullable Entity owner, LivingEntity mob, int amplification, double scale) Methods inherited from class InstantenousMobEffect
isInstantenous, shouldApplyEffectTickThisTickMethods inherited from class MobEffect
addAttributeModifier, addAttributeModifier, addAttributeModifiers, 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
-
Field Details
-
isHarm
private final boolean isHarm
-
-
Constructor Details
-
HealOrHarmMobEffect
-
-
Method Details
-
applyEffectTick
- Overrides:
applyEffectTickin classMobEffect
-
applyInstantenousEffect
public void applyInstantenousEffect(ServerLevel serverLevel, @Nullable Entity source, @Nullable Entity owner, LivingEntity mob, int amplification, double scale) - Overrides:
applyInstantenousEffectin classMobEffect
-