Package net.minecraft.world.effect
Class MobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
- All Implemented Interfaces:
IForgeMobEffect
- Direct Known Subclasses:
AbsorptionMobEffect,BadOmenMobEffect,HungerMobEffect,InstantenousMobEffect,PoisonMobEffect,RegenerationMobEffect,WitherMobEffect
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Attribute,AttributeModifierTemplate> private final Holder.Reference<MobEffect>private final MobEffectCategoryprivate final intprivate Stringprivate Objectprivate Supplier<MobEffectInstance.FactorData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeModifier(Attribute p_19473_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) voidaddAttributeModifiers(AttributeMap p_19479_, int p_19480_) voidapplyEffectTick(LivingEntity p_19467_, int p_19468_) voidapplyInstantenousEffect(Entity p_19462_, Entity p_19463_, LivingEntity p_19464_, int p_19465_, double p_19466_) Deprecated.intgetColor()protected Stringprivate voidvoidinitializeClient(Consumer<IClientMobEffectExtensions> consumer) booleanbooleanvoidonEffectStarted(LivingEntity p_299085_, int p_297449_) voidremoveAttributeModifiers(AttributeMap p_19470_) setFactorDataFactory(Supplier<MobEffectInstance.FactorData> p_216880_) booleanshouldApplyEffectTickThisTick(int p_297908_, int p_301085_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeMobEffect
getCurativeItems, getSortOrder
-
Field Details
-
attributeModifiers
-
category
-
color
private final int color -
descriptionId
-
factorDataFactory
-
builtInRegistryHolder
-
effectRenderer
-
-
Constructor Details
-
MobEffect
-
-
Method Details
-
createFactorData
-
applyEffectTick
-
applyInstantenousEffect
public void applyInstantenousEffect(@Nullable Entity p_19462_, @Nullable Entity p_19463_, LivingEntity p_19464_, int p_19465_, double p_19466_) -
shouldApplyEffectTickThisTick
public boolean shouldApplyEffectTickThisTick(int p_297908_, int p_301085_) -
onEffectStarted
-
isInstantenous
public boolean isInstantenous() -
getOrCreateDescriptionId
-
getDescriptionId
-
getDisplayName
-
getCategory
-
getColor
public int getColor() -
addAttributeModifier
public MobEffect addAttributeModifier(Attribute p_19473_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) -
setFactorDataFactory
-
getAttributeModifiers
-
removeAttributeModifiers
-
addAttributeModifiers
-
isBeneficial
public boolean isBeneficial() -
getEffectRendererInternal
-
initClient
private void initClient() -
initializeClient
-
builtInRegistryHolder
Deprecated.
-