net.minecraft.world.item.enchantment.effects

public record ApplyMobEffect

implements EnchantmentEntityEffect

dan
net.minecraft.world.item.enchantment.effects.ApplyMobEffect
net.minecraft.class_9716
net.minecraft.enchantment.effect.entity.ApplyMobEffectEnchantmentEffect
net.minecraft.src.C_336436_
net.minecraft.world.item.enchantment.effects.ApplyMobEffect

Field summary

Modifier and TypeField
private final HolderSet<MobEffect>
d
toApply
comp_2708
toApply
f_337589_
private final LevelBasedValue
e
minDuration
comp_2709
minDuration
f_337616_
private final LevelBasedValue
f
maxDuration
comp_2710
maxDuration
f_337391_
private final LevelBasedValue
g
minAmplifier
comp_2711
minAmplifier
f_336825_
private final LevelBasedValue
h
maxAmplifier
comp_2712
maxAmplifier
f_337183_
public static final com.mojang.serialization.MapCodec<ApplyMobEffect>
a
CODEC
field_51701
CODEC
f_336611_

Constructor summary

ModifierConstructor
public (HolderSet<MobEffect> minDuration, LevelBasedValue maxDuration, LevelBasedValue minAmplifier, LevelBasedValue maxAmplifier, LevelBasedValue arg4)

Method summary

Modifier and TypeMethod
public void
a(aqu arg0, int arg1, dab arg2, bsr arg3, exc arg4)
apply(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, Entity arg3, Vec3 arg4)
method_60220(class_3218 arg0, int arg1, class_9699 arg2, class_1297 arg3, class_243 arg4)
apply(ServerWorld arg0, int arg1, EnchantmentEffectContext arg2, Entity arg3, Vec3d arg4)
m_338607_(C_12_ p_344950_, int p_344081_, C_336528_ p_344762_, C_507_ p_343893_, C_3046_ arg4)
public com.mojang.serialization.MapCodec<ApplyMobEffect>
a()
codec()
method_60219()
getCodec()
m_338403_()
public HolderSet<MobEffect>
b()
toApply()
comp_2708()
toApply()
f_337589_()
public LevelBasedValue
c()
minDuration()
comp_2709()
minDuration()
f_337616_()
public LevelBasedValue
d()
maxDuration()
comp_2710()
maxDuration()
f_337391_()
public LevelBasedValue
e()
minAmplifier()
comp_2711()
minAmplifier()
f_336825_()
public LevelBasedValue
f()
maxAmplifier()
comp_2712()
maxAmplifier()
f_337183_()