net.minecraft.world.effect

public class MobEffectInstance

implements Comparable<MobEffectInstance>

brz
net.minecraft.world.effect.MobEffectInstance
net.minecraft.class_1293
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
LOGGER
f_19501_
public static final int
a
INFINITE_DURATION
field_42106
INFINITE
f_267388_
public static final int
b
MIN_AMPLIFIER
field_49014
MIN_AMPLIFIER
f_316862_
public static final int
c
MAX_AMPLIFIER
field_49015
MAX_AMPLIFIER
f_316220_
public static final com.mojang.serialization.Codec<MobEffectInstance>
d
CODEC
field_48821
CODEC
f_316026_
public static final StreamCodec<RegistryFriendlyByteBuf, MobEffectInstance>
e
STREAM_CODEC
field_49207
PACKET_CODEC
f_315755_
private final Holder<MobEffect>
g
effect
field_5896
type
f_19502_
private int
h
duration
field_5895
duration
f_19503_
private int
i
amplifier
field_5893
amplifier
f_19504_
private boolean
j
ambient
field_5892
ambient
f_19506_
private boolean
k
visible
field_5890
showParticles
f_19508_
private boolean
l
showIcon
field_5889
showIcon
f_19509_
private MobEffectInstance
m
hiddenEffect
field_21830
hiddenEffect
f_19510_
private final MobEffectInstance$BlendState
n
blendState
field_47739
fading
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()
asParameters()
m_324991_()
public float
a(btn arg0, float arg1)
getBlendFactor(LivingEntity arg0, float arg1)
method_55653(class_1309 arg0, float arg1)
getFadeFactor(LivingEntity entity, float tickDelta)
m_318631_(C_524_ p_327866_, float arg1)
public ParticleOptions
a()
getParticleOptions()
method_58148()
createParticle()
m_319016_()
void
a(brz arg0)
setDetailsFrom(MobEffectInstance arg0)
method_24276(class_1293 arg0)
copyFrom(StatusEffectInstance that)
m_19548_(C_498_ arg0)
public boolean
b(brz arg0)
update(MobEffectInstance arg0)
method_5590(class_1293 arg0)
upgrade(StatusEffectInstance that)
m_19558_(C_498_ arg0)
private boolean
e(brz arg0)
isShorterDurationThan(MobEffectInstance arg0)
method_48561(class_1293 arg0)
lastsShorterThan(StatusEffectInstance effect)
m_267670_(C_498_ arg0)
public boolean
b()
isInfiniteDuration()
method_48559()
isInfinite()
m_267577_()
public boolean
a(int arg0)
endsWithin(int arg0)
method_48557(int arg0)
isDurationBelow(int duration)
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)
mapDuration(it.unimi.dsi.fastutil.ints.Int2IntFunction mapper)
m_267696_(it.unimi.dsi.fastutil.ints.Int2IntFunction arg0)
public Holder<MobEffect>
c()
getEffect()
method_5579()
getEffectType()
m_19544_()
public int
d()
getDuration()
method_5584()
getDuration()
m_19557_()
public int
e()
getAmplifier()
method_5578()
getAmplifier()
m_19564_()
public boolean
f()
isAmbient()
method_5591()
isAmbient()
m_19571_()
public boolean
g()
isVisible()
method_5581()
shouldShowParticles()
m_19572_()
public boolean
h()
showIcon()
method_5592()
shouldShowIcon()
m_19575_()
public boolean
a(btn arg0, Runnable arg1)
tick(LivingEntity arg0, Runnable arg1)
method_5585(class_1309 arg0, Runnable arg1)
update(LivingEntity entity, Runnable overwriteCallback)
m_19552_(C_524_ p_19554_, Runnable arg1)
private boolean
m()
hasRemainingDuration()
method_48562()
isActive()
m_267725_()
private int
n()
tickDownDuration()
method_5588()
updateDuration()
m_19579_()
public void
a(btn arg0)
onEffectStarted(LivingEntity arg0)
method_52523(class_1309 arg0)
onApplied(LivingEntity entity)
m_292680_(C_524_ arg0)
public void
a(btn arg0, bsr$c arg1)
onMobRemoved(LivingEntity arg0, Entity$RemovalReason arg1)
method_58622(class_1309 arg0, class_1297$class_5529 arg1)
onEntityRemoval(LivingEntity entity, Entity$RemovalReason reason)
m_325044_(C_524_ p_333232_, C_507_$C_141065_ arg1)
public void
a(btn arg0, brk arg1, float arg2)
onMobHurt(LivingEntity arg0, DamageSource arg1, float arg2)
method_58621(class_1309 arg0, class_1282 arg1, float arg2)
onEntityDamage(LivingEntity entity, DamageSource source, float amount)
m_321810_(C_524_ p_328403_, C_489_ p_331463_, float arg2)
public String
i()
getDescriptionId()
method_5586()
getTranslationKey()
m_19576_()
private String
o()
describeDuration()
method_48563()
getDurationString()
m_267740_()
public Tag
j()
save()
method_5582()
writeNbt()
m_19555_()
public static MobEffectInstance
a(ub arg0)
load(CompoundTag arg0)
method_5583(class_2487 arg0)
fromNbt(NbtCompound nbt)
m_19560_(C_4917_ p_19561_)
public int
c(brz arg0)
compareTo(MobEffectInstance arg0)
method_5587(class_1293 arg0)
compareTo(StatusEffectInstance arg0)
compareTo(C_498_ arg0)
public void
b(btn arg0)
onEffectAdded(LivingEntity arg0)
method_58623(class_1309 arg0)
playApplySound(LivingEntity entity)
m_322321_(C_524_ arg0)
public boolean
a(jm<brx> arg0)
is(Holder<MobEffect> arg0)
method_55654(class_6880<class_1291> arg0)
equals(RegistryEntry<StatusEffect> effect)
m_323663_(C_203228_<C_496_> arg0)
public void
d(brz arg0)
copyBlendState(MobEffectInstance arg0)
method_55656(class_1293 arg0)
copyFadingFrom(StatusEffectInstance effect)
m_324193_(C_498_ arg0)
public void
k()
skipBlending()
method_55657()
skipFading()
m_320166_()