net.minecraft.world.effect

public class MobEffectInstance

implements Comparable<MobEffectInstance>

asz
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.apache.logging.log4j.Logger
a
LOGGER
field_5897
LOGGER
f_19501_
private final MobEffect
b
effect
field_5896
type
f_19502_
private int
c
duration
field_5895
duration
f_19503_
private int
d
amplifier
field_5893
amplifier
f_19504_
private boolean
e
ambient
field_5892
ambient
f_19506_
private boolean
f
noCounter
field_5891
permanent
f_19507_
private boolean
g
visible
field_5890
showParticles
f_19508_
private boolean
h
showIcon
field_5889
showIcon
f_19509_
private MobEffectInstance
i
hiddenEffect
field_21830
hiddenEffect
f_19510_

Constructor summary

ModifierConstructor
public (MobEffect type)
public (MobEffect type, int duration)
public (MobEffect type, int duration, int amplifier)
public (MobEffect type, int duration, int amplifier, boolean ambient, boolean visible)
public (MobEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon)
public (MobEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon, MobEffectInstance hiddenEffect)
public (MobEffectInstance that)

Method summary

Modifier and TypeMethod
void
a(asz arg0)
setDetailsFrom(MobEffectInstance arg0)
method_24276(class_1293 arg0)
copyFrom(StatusEffectInstance that)
m_19548_(C_498_ arg0)
public boolean
b(asz arg0)
update(MobEffectInstance arg0)
method_5590(class_1293 arg0)
upgrade(StatusEffectInstance that)
m_19558_(C_498_ arg0)
public MobEffect
a()
getEffect()
method_5579()
getEffectType()
m_19544_()
getMobEffect()
public int
b()
getDuration()
method_5584()
getDuration()
m_19557_()
getDuration()
public int
c()
getAmplifier()
method_5578()
getAmplifier()
m_19564_()
getAmplifier()
public boolean
d()
isAmbient()
method_5591()
isAmbient()
m_19571_()
isAmbient()
public boolean
e()
isVisible()
method_5581()
shouldShowParticles()
m_19572_()
isShowParticles()
public boolean
f()
showIcon()
method_5592()
shouldShowIcon()
m_19575_()
isShowIcon()
public boolean
a(att 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)
tick(EntityLiving arg0, Runnable arg1)
private int
i()
tickDownDuration()
method_5588()
updateDuration()
m_19579_()
public void
a(att arg0)
applyEffect(LivingEntity arg0)
method_5589(class_1309 arg0)
applyUpdateEffect(LivingEntity entity)
m_19550_(C_524_ arg0)
public String
g()
getDescriptionId()
method_5586()
getTranslationKey()
m_19576_()
public CompoundTag
a(na arg0)
save(CompoundTag arg0)
method_5582(class_2487 arg0)
writeNbt(NbtCompound nbt)
m_19555_(C_4917_ arg0)
private void
c(na arg0)
writeDetailsTo(CompoundTag arg0)
method_24277(class_2487 arg0)
writeTypelessNbt(NbtCompound nbt)
m_19567_(C_4917_ arg0)
public static MobEffectInstance
b(na arg0)
load(CompoundTag arg0)
method_5583(class_2487 arg0)
fromNbt(NbtCompound nbt)
m_19560_(C_4917_ p_19561_)
private static MobEffectInstance
a(asx arg0, na arg1)
loadSpecifiedEffect(MobEffect arg0, CompoundTag arg1)
method_24275(class_1291 arg0, class_2487 arg1)
fromNbt(StatusEffect type, NbtCompound nbt)
m_19545_(C_496_ p_19546_, C_4917_ p_19547_)
public void
a(boolean arg0)
setNoCounter(boolean arg0)
method_5580(boolean arg0)
setPermanent(boolean permanent)
m_19562_(boolean arg0)
public boolean
h()
isNoCounter()
method_5593()
isPermanent()
m_19577_()
public int
c(asz arg0)
compareTo(MobEffectInstance arg0)
method_5587(class_1293 arg0)
compareTo(StatusEffectInstance arg0)
compareTo(C_498_ arg0)