Package net.minecraft.world.effect
Class MobEffect
- All Implemented Interfaces:
IForgeMobEffect
,IForgeRegistryEntry<MobEffect>
- Direct Known Subclasses:
AbsoptionMobEffect
,AttackDamageMobEffect
,HealthBoostMobEffect
,InstantenousMobEffect
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<Attribute,AttributeModifier>
private MobEffectCategory
private int
private String
private Object
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
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
protected String
private void
void
initializeClient(Consumer<EffectRenderer> consumer)
boolean
boolean
isDurationEffectTick(int p_19455_, int p_19456_)
boolean
void
removeAttributeModifiers(LivingEntity p_19469_, AttributeMap p_19470_, int p_19471_)
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
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, getGuiSortColor
-
Field Details
-
attributeModifiers
-
category
-
color
private final int color -
descriptionId
-
effectRenderer
-
-
Constructor Details
-
MobEffect
-
-
Method Details
-
byId
-
getId
-
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_) -
getAttributeModifiers
-
removeAttributeModifiers
-
addAttributeModifiers
-
getAttributeModifierValue
-
isBeneficial
public boolean isBeneficial() -
getEffectRendererInternal
-
initClient
private void initClient() -
initializeClient
-