net.minecraft.world.effect

public class MobEffectInstance

implements Comparable<MobEffectInstance>

bid
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
b
LOGGER
field_5897
LOGGER
f_19501_
public static final int
a
INFINITE_DURATION
field_42106
INFINITE
f_267388_
private static final String
c
TAG_ID
field_45730
ID_NBT_KEY
f_290519_
private static final String
d
TAG_AMBIENT
field_45731
AMBIENT_NBT_KEY
f_291631_
private static final String
e
TAG_HIDDEN_EFFECT
field_45732
HIDDEN_EFFECT_NBT_KEY
f_290481_
private static final String
f
TAG_AMPLIFIER
field_45733
AMPLIFIER_NBT_KEY
f_290928_
private static final String
g
TAG_DURATION
field_45734
DURATION_NBT_KEY
f_291169_
private static final String
h
TAG_SHOW_PARTICLES
field_45735
SHOW_PARTICLES_NBT_KEY
f_290735_
private static final String
i
TAG_SHOW_ICON
field_45736
SHOW_ICON_NBT_KEY
f_290610_
private static final String
j
TAG_FACTOR_CALCULATION_DATA
field_45737
FACTOR_CALCULATION_DATA_NBT_KEY
f_290894_
private final MobEffect
k
effect
field_5896
type
f_19502_
private int
l
duration
field_5895
duration
f_19503_
private int
m
amplifier
field_5893
amplifier
f_19504_
private boolean
n
ambient
field_5892
ambient
f_19506_
private boolean
o
visible
field_5890
showParticles
f_19508_
private boolean
p
showIcon
field_5889
showIcon
f_19509_
private MobEffectInstance
q
hiddenEffect
field_21830
hiddenEffect
f_19510_
private final Optional<MobEffectInstance$FactorData>
r
factorData
field_38084
factorCalculationData
f_216885_

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, Optional<MobEffectInstance$FactorData> factorCalculationData)
public (MobEffectInstance instance)

Method summary

Modifier and TypeMethod
public Optional<MobEffectInstance$FactorData>
a()
getFactorData()
method_42129()
getFactorCalculationData()
m_216895_()
void
a(bid arg0)
setDetailsFrom(MobEffectInstance arg0)
method_24276(class_1293 arg0)
copyFrom(StatusEffectInstance that)
m_19548_(C_498_ arg0)
public boolean
b(bid arg0)
update(MobEffectInstance arg0)
method_5590(class_1293 arg0)
upgrade(StatusEffectInstance that)
m_19558_(C_498_ arg0)
private boolean
d(bid 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 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(bjg 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
j()
hasRemainingDuration()
method_48562()
isActive()
m_267725_()
private int
k()
tickDownDuration()
method_5588()
updateDuration()
m_19579_()
public void
a(bjg arg0)
onEffectStarted(LivingEntity arg0)
method_52523(class_1309 arg0)
onApplied(LivingEntity entity)
m_292680_(C_524_ arg0)
public String
i()
getDescriptionId()
method_5586()
getTranslationKey()
m_19576_()
private String
l()
describeDuration()
method_48563()
getDurationString()
m_267740_()
public CompoundTag
a(qw arg0)
save(CompoundTag arg0)
method_5582(class_2487 arg0)
writeNbt(NbtCompound nbt)
m_19555_(C_4917_ arg0)
private void
c(qw arg0)
writeDetailsTo(CompoundTag arg0)
method_24277(class_2487 arg0)
writeTypelessNbt(NbtCompound nbt)
m_19567_(C_4917_ arg0)
public static MobEffectInstance
b(qw arg0)
load(CompoundTag arg0)
method_5583(class_2487 arg0)
fromNbt(NbtCompound nbt)
m_19560_(C_4917_ p_19561_)
private static MobEffectInstance
a(bib arg0, qw 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 int
c(bid arg0)
compareTo(MobEffectInstance arg0)
method_5587(class_1293 arg0)
compareTo(StatusEffectInstance arg0)
compareTo(C_498_ arg0)