Package net.minecraft.world.effect
Class MobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
- All Implemented Interfaces:
IForgeMobEffect
- Direct Known Subclasses:
AbsoptionMobEffect,AttackDamageMobEffect,HealthBoostMobEffect,InstantenousMobEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Attribute,AttributeModifier> 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(LivingEntity p_19478_, 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_) static MobEffectbyId(int p_19454_) doublegetAttributeModifierValue(int p_19457_, AttributeModifier p_19458_) intgetColor()static intstatic intgetIdFromNullable(MobEffect p_216883_) protected Stringprivate voidvoidinitializeClient(Consumer<IClientMobEffectExtensions> consumer) booleanbooleanisDurationEffectTick(int p_19455_, int p_19456_) booleanvoidremoveAttributeModifiers(LivingEntity p_19469_, AttributeMap p_19470_, int p_19471_) setFactorDataFactory(Supplier<MobEffectInstance.FactorData> p_216880_) 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
-
effectRenderer
-
-
Constructor Details
-
MobEffect
-
-
Method Details
-
byId
-
getId
-
getIdFromNullable
-
createFactorData
-
applyEffectTick
-
applyInstantenousEffect
public void applyInstantenousEffect(@Nullable Entity p_19462_, @Nullable Entity p_19463_, LivingEntity p_19464_, int p_19465_, double p_19466_) -
isDurationEffectTick
public boolean isDurationEffectTick(int p_19455_, int p_19456_) -
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
-
getAttributeModifierValue
-
isBeneficial
public boolean isBeneficial() -
getEffectRendererInternal
-
initClient
private void initClient() -
initializeClient
-