net.minecraft.world.effect

public class MobEffect

implements FeatureElement

bsc
net.minecraft.world.effect.MobEffect
net.minecraft.class_1291
net.minecraft.unmapped.C_jaqasomh
net.minecraft.entity.effect.StatusEffect
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
f_hrqsqyvx
AMBIENT_PARTICLE_ALPHA
AMBIENT_PARTICLE_ALPHA
f_314568_
private final Map<Holder<Attribute>, MobEffect$AttributeTemplate>
b
attributeModifiers
field_5885
f_rqynlpsa
attributeModifiers
attributeModifiers
f_19446_
private final MobEffectCategory
c
category
field_18270
f_pnqtkxvc
category
type
f_19447_
private final int
d
color
field_5886
f_fcnodzqo
color
color
f_19448_
private final Function<MobEffectInstance, ParticleOptions>
e
particleFactory
field_49790
f_fromvzcw
particleFactory
particleFactory
f_314870_
private String
f
descriptionId
field_5883
f_yqqwyxsb
translationKey
translationKey
f_19449_
private int
g
blendDurationTicks
field_47738
f_umzrptqr
fadeTicks
blendDuration
f_315239_
private Optional<SoundEvent>
h
soundOnAdded
field_50114
f_ohrjpsvc
applySound
applySound
f_316316_
private FeatureFlagSet
i
requiredFeatures
field_50115
f_ejiuuoay
requiredFeatures
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()
m_ijocerbb()
getFadeTicks()
getBlendDuration()
m_323916_()
public boolean
a(btr arg0, int arg1)
applyEffectTick(LivingEntity arg0, int arg1)
method_5572(class_1309 arg0, int arg1)
m_despsamn(C_usxaxydn arg0, int arg1)
applyUpdateEffect(LivingEntity entity, int amplifier)
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)
m_xccgpemy(C_astfners arg0, C_astfners arg1, C_usxaxydn arg2, int arg3, double arg4)
applyInstantEffect(Entity source, Entity attacker, LivingEntity target, int amplifier, double proximity)
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)
m_irzxckrv(int arg0, int arg1)
canApplyUpdateEffect(int duration, int amplifier)
shouldApplyUpdateEffect(int tick, 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)
m_cqhckmsk(C_usxaxydn arg0, int arg1)
onApplied(LivingEntity entity, int amplifier)
applyToEntity(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)
m_rkyihfiu(C_usxaxydn arg0, int arg1)
playApplySound(LivingEntity entity, int amplifier)
onEffectApplied(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)
m_tlfwwrri(C_usxaxydn arg0, int arg1, C_astfners$C_emmohndu arg2)
onEntityRemoval(LivingEntity entity, int amplifier, Entity$RemovalReason reason)
onEntityRemoved(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)
m_ntlsrlro(C_usxaxydn arg0, int arg1, C_sbxfkpyv arg2, float arg3)
onEntityDamage(LivingEntity entity, int amplifier, DamageSource source, float amount)
onEntityHurt(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()
m_yxnpxply()
isInstant()
isInstant()
m_8093_()
protected String
c()
getOrCreateDescriptionId()
method_5559()
m_sdyrfndd()
loadTranslationKey()
loadTranslationKey()
m_19477_()
public String
d()
getDescriptionId()
method_5567()
m_baqejeuf()
getTranslationKey()
getTranslationKey()
m_19481_()
public Component
e()
getDisplayName()
method_5560()
m_shkzklwb()
getName()
getName()
m_19482_()
public MobEffectCategory
f()
getCategory()
method_18792()
m_qpdmsuqi()
getCategory()
getType()
m_19483_()
public int
g()
getColor()
method_5556()
m_bpyxngol()
getColor()
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)
m_nnnovhef(C_cjzoxshv<C_ppzfbbsy> arg0, String arg1, double arg2, C_hdbqsqsm$C_pljpmmzs arg3)
addAttributeModifier(RegistryEntry<EntityAttribute> attribute, String uuid, double amount, EntityAttributeModifier$Operation operation)
addAttributeModifier(Holder<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)
m_hgarvyvx(int arg0)
fadeTicks(int fadeTicks)
withBlendDuration(int blendDuration)
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)
m_qlsxoyxu(int arg0, BiConsumer<C_cjzoxshv<C_ppzfbbsy>, C_hdbqsqsm> arg1)
forEachAttributeModifier(int amplifier, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> consumer)
createAttributeModifiers(int amplifier, BiConsumer<Holder<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)
m_sfpvrsws(C_cohbwqne arg0)
onRemoved(AttributeContainer attributeContainer)
onRemoved(AttributeContainer attributes)
m_6386_(C_554_ arg0)
public void
a(buw arg0, int arg1)
addAttributeModifiers(AttributeMap arg0, int arg1)
method_5555(class_5131 arg0, int arg1)
m_azrqgeuc(C_cohbwqne arg0, int arg1)
onApplied(AttributeContainer attributeContainer, int amplifier)
onApplied(AttributeContainer attributes, int amplifier)
m_6385_(C_554_ p_19480_, int arg1)
public boolean
h()
isBeneficial()
method_5573()
m_igvnkdng()
isBeneficial()
isBeneficial()
m_19486_()
public ParticleOptions
a(bse arg0)
createParticleOptions(MobEffectInstance arg0)
method_58146(class_1293 arg0)
m_uosrujfk(C_wpfizwve arg0)
createParticle(StatusEffectInstance effect)
createParticle(StatusEffectInstance statusEffect)
m_321363_(C_498_ arg0)
public MobEffect
a(avz arg0)
withSoundOnAdded(SoundEvent arg0)
method_58616(class_3414 arg0)
m_masoeeuk(C_avavozay arg0)
applySound(SoundEvent sound)
setApplySound(SoundEvent sound)
m_320304_(C_123_ arg0)
public MobEffect
a(cpl... arg0)
requiredFeatures(FeatureFlag... arg0)
method_58619(class_7696... arg0)
m_abuwruad(C_kksdgidr... arg0)
requires(FeatureFlag... requiredFeatures)
setRequiredFeatures(FeatureFlag... flags)
m_320974_(C_243544_... arg0)
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
m_gsnyyecf()
getRequiredFeatures()
getRequiredFlags()
m_245183_()