net.minecraft.world.effect

public class MobEffectInstance

implements Comparable<MobEffectInstance>

bup
net.minecraft.world.effect.MobEffectInstance
net.minecraft.class_1293
net.minecraft.entity.effect.StatusEffectInstance
net.minecraft.world.effect.MobEffect

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
f
LOGGER
field_5897
LOGGER
public static final int
a
INFINITE_DURATION
field_42106
INFINITE
public static final int
b
MIN_AMPLIFIER
field_49014
MIN_AMPLIFIER
public static final int
c
MAX_AMPLIFIER
field_49015
MAX_AMPLIFIER
public static final com.mojang.serialization.Codec<MobEffectInstance>
d
CODEC
field_48821
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, MobEffectInstance>
e
STREAM_CODEC
field_49207
PACKET_CODEC
private final Holder<MobEffect>
g
effect
field_5896
type
private int
h
duration
field_5895
duration
private int
i
amplifier
field_5893
amplifier
private boolean
j
ambient
field_5892
ambient
private boolean
k
visible
field_5890
showParticles
private boolean
l
showIcon
field_5889
showIcon
private MobEffectInstance
m
hiddenEffect
field_21830
hiddenEffect
private final MobEffectInstance$BlendState
n
blendState
field_47739
fading

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()
public float
a(bwg arg0, float arg1)
getBlendFactor(LivingEntity arg0, float arg1)
method_55653(class_1309 arg0, float arg1)
getFadeFactor(LivingEntity entity, float tickDelta)
public ParticleOptions
a()
getParticleOptions()
method_58148()
createParticle()
void
a(bup arg0)
setDetailsFrom(MobEffectInstance arg0)
method_24276(class_1293 arg0)
copyFrom(StatusEffectInstance that)
public boolean
b(bup arg0)
update(MobEffectInstance arg0)
method_5590(class_1293 arg0)
upgrade(StatusEffectInstance that)
private boolean
e(bup arg0)
isShorterDurationThan(MobEffectInstance arg0)
method_48561(class_1293 arg0)
lastsShorterThan(StatusEffectInstance effect)
public boolean
b()
isInfiniteDuration()
method_48559()
isInfinite()
public boolean
a(int arg0)
endsWithin(int arg0)
method_48557(int arg0)
isDurationBelow(int duration)
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)
public Holder<MobEffect>
c()
getEffect()
method_5579()
getEffectType()
public int
d()
getDuration()
method_5584()
getDuration()
public int
e()
getAmplifier()
method_5578()
getAmplifier()
public boolean
f()
isAmbient()
method_5591()
isAmbient()
public boolean
g()
isVisible()
method_5581()
shouldShowParticles()
public boolean
h()
showIcon()
method_5592()
shouldShowIcon()
public boolean
a(bwg arg0, Runnable arg1)
tick(LivingEntity arg0, Runnable arg1)
method_5585(class_1309 arg0, Runnable arg1)
update(LivingEntity entity, Runnable overwriteCallback)
private boolean
m()
hasRemainingDuration()
method_48562()
isActive()
private int
n()
tickDownDuration()
method_5588()
updateDuration()
public void
a(bwg arg0)
onEffectStarted(LivingEntity arg0)
method_52523(class_1309 arg0)
onApplied(LivingEntity entity)
public void
a(ash arg0, bwg arg1, bvk$d arg2)
onMobRemoved(ServerLevel arg0, LivingEntity arg1, Entity$RemovalReason arg2)
method_58622(class_3218 arg0, class_1309 arg1, class_1297$class_5529 arg2)
onEntityRemoval(ServerWorld world, LivingEntity entity, Entity$RemovalReason reason)
public void
a(ash arg0, bwg arg1, bua arg2, float arg3)
onMobHurt(ServerLevel arg0, LivingEntity arg1, DamageSource arg2, float arg3)
method_58621(class_3218 arg0, class_1309 arg1, class_1282 arg2, float arg3)
onEntityDamage(ServerWorld world, LivingEntity entity, DamageSource source, float amount)
public String
i()
getDescriptionId()
method_5586()
getTranslationKey()
private String
o()
describeDuration()
method_48563()
getDurationString()
public Tag
j()
save()
method_5582()
writeNbt()
public static MobEffectInstance
a(ux arg0)
load(CompoundTag arg0)
method_5583(class_2487 arg0)
fromNbt(NbtCompound nbt)
public int
c(bup arg0)
compareTo(MobEffectInstance arg0)
method_5587(class_1293 arg0)
compareTo(StatusEffectInstance arg0)
public void
b(bwg arg0)
onEffectAdded(LivingEntity arg0)
method_58623(class_1309 arg0)
playApplySound(LivingEntity entity)
public boolean
a(jq<bun> arg0)
is(Holder<MobEffect> arg0)
method_55654(class_6880<class_1291> arg0)
equals(RegistryEntry<StatusEffect> effect)
public void
d(bup arg0)
copyBlendState(MobEffectInstance arg0)
method_55656(class_1293 arg0)
copyFadingFrom(StatusEffectInstance effect)
public void
k()
skipBlending()
method_55657()
skipFading()