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
Modifier and TypeFieldDescriptionprivate final Map<Attribute,
AttributeModifier> private final MobEffectCategory
private final int
private String
private Object
private Supplier<MobEffectInstance.FactorData>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributeModifier
(Attribute p_19473_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) void
addAttributeModifiers
(LivingEntity p_19478_, AttributeMap p_19479_, int p_19480_) void
applyEffectTick
(LivingEntity p_19467_, int p_19468_) void
applyInstantenousEffect
(Entity p_19462_, Entity p_19463_, LivingEntity p_19464_, int p_19465_, double p_19466_) static MobEffect
byId
(int p_19454_) double
getAttributeModifierValue
(int p_19457_, AttributeModifier p_19458_) int
getColor()
static int
static int
getIdFromNullable
(MobEffect p_216883_) protected String
private void
void
initializeClient
(Consumer<IClientMobEffectExtensions> consumer) boolean
boolean
isDurationEffectTick
(int p_19455_, int p_19456_) boolean
void
removeAttributeModifiers
(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, wait
Methods 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
-