net.minecraft.world.effect

public class MobEffectInstance

implements Comparable<MobEffectInstance>

bse
net.minecraft.world.effect.MobEffectInstance
net.minecraft.class_1293
net.minecraft.unmapped.C_wpfizwve
net.minecraft.entity.effect.StatusEffectInstance
net.minecraft.entity.effect.StatusEffectInstance
net.minecraft.src.C_498_
net.minecraft.world.effect.MobEffect

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
f
LOGGER
field_5897
f_cawgobpt
LOGGER
LOGGER
f_19501_
public static final int
a
INFINITE_DURATION
field_42106
f_sfiyfhvh
INFINITE
INFINITE_DURATION
f_267388_
public static final int
b
MIN_AMPLIFIER
field_49014
f_jzszemkt
MIN_AMPLIFIER
MIN_AMPLIFIER
f_316862_
public static final int
c
MAX_AMPLIFIER
field_49015
f_bjwawrjq
MAX_AMPLIFIER
MAX_AMPLIFIER
f_316220_
public static final com.mojang.serialization.Codec<MobEffectInstance>
d
CODEC
field_48821
f_oaxuofvb
CODEC
CODEC
f_316026_
public static final StreamCodec<RegistryFriendlyByteBuf, MobEffectInstance>
e
STREAM_CODEC
field_49207
f_fmkfvhmz
PACKET_CODEC
PACKET_CODEC
f_315755_
private final Holder<MobEffect>
g
effect
field_5896
f_roivswws
type
type
f_19502_
private int
h
duration
field_5895
f_phnnfhqn
duration
duration
f_19503_
private int
i
amplifier
field_5893
f_bkslpncm
amplifier
amplifier
f_19504_
private boolean
j
ambient
field_5892
f_ieofirpv
ambient
ambient
f_19506_
private boolean
k
visible
field_5890
f_hvgmvstv
showParticles
showParticles
f_19508_
private boolean
l
showIcon
field_5889
f_vciwymjw
showIcon
showIcon
f_19509_
private MobEffectInstance
m
hiddenEffect
field_21830
f_cqswxreu
hiddenEffect
hiddenEffect
f_19510_
private final MobEffectInstance$BlendState
n
blendState
field_47739
f_fjrfbwth
fading
blendState
f_317081_

Constructor summary

ModifierConstructor
public (Holder<MobEffect> effect)
public (Holder<MobEffect> effect, int duration)
public (Holder<MobEffect> effect, int duration, int amplifier)
public (Holder<MobEffect> effect, int duration, int amplifier, boolean ambient, boolean visible)
public (Holder<MobEffect> effect, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon)
public (Holder<MobEffect> effect, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon, MobEffectInstance hiddenEffect)
public (MobEffectInstance instance)
private (Holder<MobEffect> effect, MobEffectInstance$Details parameters)

Method summary

Modifier and TypeMethod
private MobEffectInstance$Details
l()
asDetails()
method_56668()
m_cxsaifnx()
asParameters()
getDetails()
m_324991_()
public float
a(btr arg0, float arg1)
getBlendFactor(LivingEntity arg0, float arg1)
method_55653(class_1309 arg0, float arg1)
m_rpnokfkv(C_usxaxydn arg0, float arg1)
getFadeFactor(LivingEntity entity, float tickDelta)
getBlendFactor(LivingEntity entity, float tickDelta)
m_318631_(C_524_ p_327866_, float arg1)
public ParticleOptions
a()
getParticleOptions()
method_58148()
m_bspyvfdb()
createParticle()
createParticle()
m_319016_()
void
a(bse arg0)
setDetailsFrom(MobEffectInstance arg0)
method_24276(class_1293 arg0)
m_xwkrgskr(C_wpfizwve arg0)
copyFrom(StatusEffectInstance that)
copyFrom(StatusEffectInstance that)
m_19548_(C_498_ arg0)
public boolean
b(bse arg0)
update(MobEffectInstance arg0)
method_5590(class_1293 arg0)
m_hyaduncp(C_wpfizwve arg0)
upgrade(StatusEffectInstance that)
upgrade(StatusEffectInstance that)
m_19558_(C_498_ arg0)
private boolean
e(bse arg0)
isShorterDurationThan(MobEffectInstance arg0)
method_48561(class_1293 arg0)
m_qxzigndt(C_wpfizwve arg0)
lastsShorterThan(StatusEffectInstance effect)
lastsShorterThan(StatusEffectInstance effect)
m_267670_(C_498_ arg0)
public boolean
b()
isInfiniteDuration()
method_48559()
m_cqvpfuqq()
isInfinite()
isInfinite()
m_267577_()
public boolean
a(int arg0)
endsWithin(int arg0)
method_48557(int arg0)
m_yxwgbwgv(int arg0)
isDurationBelow(int duration)
endsWithin(int ticks)
m_267633_(int arg0)
public int
a(it.unimi.dsi.fastutil.ints.Int2IntFunction arg0)
mapDuration(it.unimi.dsi.fastutil.ints.Int2IntFunction arg0)
method_48558(it.unimi.dsi.fastutil.ints.Int2IntFunction arg0)
m_bpgdokst(it.unimi.dsi.fastutil.ints.Int2IntFunction arg0)
mapDuration(it.unimi.dsi.fastutil.ints.Int2IntFunction mapper)
mapDuration(it.unimi.dsi.fastutil.ints.Int2IntFunction mapper)
m_267696_(it.unimi.dsi.fastutil.ints.Int2IntFunction arg0)
public Holder<MobEffect>
c()
getEffect()
method_5579()
m_kayxpwex()
getEffectType()
getEffectType()
m_19544_()
public int
d()
getDuration()
method_5584()
m_dzdptdhl()
getDuration()
getDuration()
m_19557_()
public int
e()
getAmplifier()
method_5578()
m_bbjmshxh()
getAmplifier()
getAmplifier()
m_19564_()
public boolean
f()
isAmbient()
method_5591()
m_uhzuhbds()
isAmbient()
isAmbient()
m_19571_()
public boolean
g()
isVisible()
method_5581()
m_qqtmdstn()
shouldShowParticles()
shouldShowParticles()
m_19572_()
public boolean
h()
showIcon()
method_5592()
m_ohxkuhnm()
shouldShowIcon()
shouldShowIcon()
m_19575_()
public boolean
a(btr arg0, Runnable arg1)
tick(LivingEntity arg0, Runnable arg1)
method_5585(class_1309 arg0, Runnable arg1)
m_eujryyfr(C_usxaxydn arg0, Runnable arg1)
update(LivingEntity entity, Runnable overwriteCallback)
update(LivingEntity entity, Runnable overwriteCallback)
m_19552_(C_524_ p_19554_, Runnable arg1)
private boolean
m()
hasRemainingDuration()
method_48562()
m_fckfddyy()
isActive()
isOngoing()
m_267725_()
private int
n()
tickDownDuration()
method_5588()
m_zhljuajd()
updateDuration()
updateDuration()
m_19579_()
public void
a(btr arg0)
onEffectStarted(LivingEntity arg0)
method_52523(class_1309 arg0)
m_vqnuhydc(C_usxaxydn arg0)
onApplied(LivingEntity entity)
applyToEntity(LivingEntity entity)
m_292680_(C_524_ arg0)
public void
a(btr arg0, bsw$c arg1)
onMobRemoved(LivingEntity arg0, Entity$RemovalReason arg1)
method_58622(class_1309 arg0, class_1297$class_5529 arg1)
m_zxegsuzr(C_usxaxydn arg0, C_astfners$C_emmohndu arg1)
onEntityRemoval(LivingEntity entity, Entity$RemovalReason reason)
onEntityRemoved(LivingEntity entity, Entity$RemovalReason reason)
m_325044_(C_524_ p_333232_, C_507_$C_141065_ arg1)
public void
a(btr arg0, brp arg1, float arg2)
onMobHurt(LivingEntity arg0, DamageSource arg1, float arg2)
method_58621(class_1309 arg0, class_1282 arg1, float arg2)
m_osynuyei(C_usxaxydn arg0, C_sbxfkpyv arg1, float arg2)
onEntityDamage(LivingEntity entity, DamageSource source, float amount)
onEntityHurt(LivingEntity entity, DamageSource source, float amount)
m_321810_(C_524_ p_328403_, C_489_ p_331463_, float arg2)
public String
i()
getDescriptionId()
method_5586()
m_xedzspyz()
getTranslationKey()
getTranslationKey()
m_19576_()
private String
o()
describeDuration()
method_48563()
m_jiwejrbn()
getDurationString()
getDurationString()
m_267740_()
public Tag
j()
save()
method_5582()
m_iioanxlw()
writeNbt()
writeNbt()
m_19555_()
public static MobEffectInstance
a(us arg0)
load(CompoundTag arg0)
method_5583(class_2487 arg0)
m_eihqlhtj(C_hhlwcnih arg0)
fromNbt(NbtCompound nbt)
fromNbt(NbtCompound nbt)
m_19560_(C_4917_ p_19561_)
public int
c(bse arg0)
compareTo(MobEffectInstance arg0)
method_5587(class_1293 arg0)
m_quzccvoy(C_wpfizwve arg0)
compareTo(StatusEffectInstance arg0)
compareTo(StatusEffectInstance arg0)
compareTo(C_498_ arg0)
public void
b(btr arg0)
onEffectAdded(LivingEntity arg0)
method_58623(class_1309 arg0)
m_entcpiae(C_usxaxydn arg0)
playApplySound(LivingEntity entity)
onEffectApplied(LivingEntity entity)
m_322321_(C_524_ arg0)
public boolean
a(ji<bsc> arg0)
is(Holder<MobEffect> arg0)
method_55654(class_6880<class_1291> arg0)
m_ttewyopb(C_cjzoxshv<C_jaqasomh> arg0)
equals(RegistryEntry<StatusEffect> effect)
isOfType(Holder<StatusEffect> type)
m_323663_(C_203228_<C_496_> arg0)
public void
d(bse arg0)
copyBlendState(MobEffectInstance arg0)
method_55656(class_1293 arg0)
m_voaqtpqg(C_wpfizwve arg0)
copyFadingFrom(StatusEffectInstance effect)
copyBlendState(StatusEffectInstance other)
m_324193_(C_498_ arg0)
public void
k()
skipBlending()
method_55657()
m_whnvneco()
skipFading()
skipBlending()
m_320166_()