net.minecraft.world.effect

public class MobEffect

implements FeatureElement

bsc
net.minecraft.world.effect.MobEffect
net.minecraft.class_1291
net.minecraft.entity.effect.StatusEffect
net.minecraft.src.C_496_
net.minecraft.world.effect.MobEffectList

Field summary

Modifier and TypeField
private static final int
a
AMBIENT_ALPHA
field_49789
AMBIENT_PARTICLE_ALPHA
f_314568_
private final Map<Holder<Attribute>, MobEffect$AttributeTemplate>
b
attributeModifiers
field_5885
attributeModifiers
f_19446_
private final MobEffectCategory
c
category
field_18270
category
f_19447_
private final int
d
color
field_5886
color
f_19448_
private final Function<MobEffectInstance, ParticleOptions>
e
particleFactory
field_49790
particleFactory
f_314870_
private String
f
descriptionId
field_5883
translationKey
f_19449_
private int
g
blendDurationTicks
field_47738
fadeTicks
f_315239_
private Optional<SoundEvent>
h
soundOnAdded
field_50114
applySound
f_316316_
private FeatureFlagSet
i
requiredFeatures
field_50115
requiredFeatures
f_316645_

Constructor summary

ModifierConstructor
protected (MobEffectCategory category, int color)
protected (MobEffectCategory category, int color, ParticleOptions particleEffect)

Method summary

Modifier and TypeMethod
public int
b()
getBlendDurationTicks()
method_55652()
getFadeTicks()
m_323916_()
public boolean
a(btr arg0, int arg1)
applyEffectTick(LivingEntity arg0, int arg1)
method_5572(class_1309 arg0, int arg1)
applyUpdateEffect(LivingEntity entity, int amplifier)
m_294194_(C_524_ p_333570_, int arg1)
public void
a(bsw arg0, bsw arg1, btr arg2, int arg3, double arg4)
applyInstantenousEffect(Entity arg0, Entity arg1, LivingEntity arg2, int arg3, double arg4)
method_5564(class_1297 arg0, class_1297 arg1, class_1309 arg2, int arg3, double arg4)
applyInstantEffect(Entity source, Entity attacker, LivingEntity target, int amplifier, double proximity)
m_19461_(C_507_ p_19463_, C_507_ p_19464_, C_524_ p_19465_, int p_19466_, double arg4)
public boolean
a(int arg0, int arg1)
shouldApplyEffectTickThisTick(int arg0, int arg1)
method_5552(int arg0, int arg1)
canApplyUpdateEffect(int duration, int amplifier)
m_19443_(int p_301085_, int arg1)
public void
b(btr arg0, int arg1)
onEffectStarted(LivingEntity arg0, int arg1)
method_52520(class_1309 arg0, int arg1)
onApplied(LivingEntity entity, int amplifier)
m_292868_(C_524_ p_297449_, int arg1)
public void
c(btr arg0, int arg1)
onEffectAdded(LivingEntity arg0, int arg1)
method_58620(class_1309 arg0, int arg1)
playApplySound(LivingEntity entity, int amplifier)
m_325074_(C_524_ p_336309_, int arg1)
public void
a(btr arg0, int arg1, bsw$c arg2)
onMobRemoved(LivingEntity arg0, int arg1, Entity$RemovalReason arg2)
method_58617(class_1309 arg0, int arg1, class_1297$class_5529 arg2)
onEntityRemoval(LivingEntity entity, int amplifier, Entity$RemovalReason reason)
m_319157_(C_524_ p_328980_, int p_328413_, C_507_$C_141065_ arg2)
public void
a(btr arg0, int arg1, brp arg2, float arg3)
onMobHurt(LivingEntity arg0, int arg1, DamageSource arg2, float arg3)
method_58614(class_1309 arg0, int arg1, class_1282 arg2, float arg3)
onEntityDamage(LivingEntity entity, int amplifier, DamageSource source, float amount)
m_6742_(C_524_ p_19468_, int p_334111_, C_489_ p_330556_, float arg3)
public boolean
a()
isInstantenous()
method_5561()
isInstant()
m_8093_()
protected String
c()
getOrCreateDescriptionId()
method_5559()
loadTranslationKey()
m_19477_()
public String
d()
getDescriptionId()
method_5567()
getTranslationKey()
m_19481_()
public Component
e()
getDisplayName()
method_5560()
getName()
m_19482_()
public MobEffectCategory
f()
getCategory()
method_18792()
getCategory()
m_19483_()
public int
g()
getColor()
method_5556()
getColor()
m_19484_()
public MobEffect
a(ji<buu> arg0, String arg1, double arg2, bux$a arg3)
addAttributeModifier(Holder<Attribute> arg0, String arg1, double arg2, AttributeModifier$Operation arg3)
method_5566(class_6880<class_1320> arg0, String arg1, double arg2, class_1322$class_1323 arg3)
addAttributeModifier(RegistryEntry<EntityAttribute> attribute, String uuid, double amount, EntityAttributeModifier$Operation operation)
m_19472_(C_203228_<C_552_> p_19474_, String p_19475_, double p_19476_, C_555_$C_556_ arg3)
public MobEffect
a(int arg0)
setBlendDuration(int arg0)
method_55649(int arg0)
fadeTicks(int fadeTicks)
m_321800_(int arg0)
public void
a(int arg0, BiConsumer<ji<buu>, bux> arg1)
createModifiers(int arg0, BiConsumer<Holder<Attribute>, AttributeModifier> arg1)
method_55650(int arg0, BiConsumer<class_6880<class_1320>, class_1322> arg1)
forEachAttributeModifier(int amplifier, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> consumer)
m_320407_(int p_333602_, BiConsumer<C_203228_<C_552_>, C_555_> arg1)
public void
a(buw arg0)
removeAttributeModifiers(AttributeMap arg0)
method_5562(class_5131 arg0)
onRemoved(AttributeContainer attributeContainer)
m_6386_(C_554_ arg0)
public void
a(buw arg0, int arg1)
addAttributeModifiers(AttributeMap arg0, int arg1)
method_5555(class_5131 arg0, int arg1)
onApplied(AttributeContainer attributeContainer, int amplifier)
m_6385_(C_554_ p_19480_, int arg1)
public boolean
h()
isBeneficial()
method_5573()
isBeneficial()
m_19486_()
public ParticleOptions
a(bse arg0)
createParticleOptions(MobEffectInstance arg0)
method_58146(class_1293 arg0)
createParticle(StatusEffectInstance effect)
m_321363_(C_498_ arg0)
public MobEffect
a(avz arg0)
withSoundOnAdded(SoundEvent arg0)
method_58616(class_3414 arg0)
applySound(SoundEvent sound)
m_320304_(C_123_ arg0)
public MobEffect
a(cpl... arg0)
requiredFeatures(FeatureFlag... arg0)
method_58619(class_7696... arg0)
requires(FeatureFlag... requiredFeatures)
m_320974_(C_243544_... arg0)
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
getRequiredFeatures()
m_245183_()