net.minecraft.world.item.enchantment.effects

public record ApplyMobEffect

implements EnchantmentEntityEffect

del
net.minecraft.world.item.enchantment.effects.ApplyMobEffect
net.minecraft.class_9716
net.minecraft.enchantment.effect.entity.ApplyMobEffectEnchantmentEffect
net.minecraft.world.item.enchantment.effects.ApplyMobEffect

Field summary

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

Constructor summary

ModifierConstructor
public (HolderSet<MobEffect> arg0, LevelBasedValue arg1, LevelBasedValue arg2, LevelBasedValue arg3, LevelBasedValue arg4)

Method summary

Modifier and TypeMethod
public void
a(ash arg0, int arg1, ddy arg2, bvk arg3, fby 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)
public com.mojang.serialization.MapCodec<ApplyMobEffect>
a()
codec()
method_60219()
getCodec()
public HolderSet<MobEffect>
b()
toApply()
comp_2708()
toApply()
public LevelBasedValue
c()
minDuration()
comp_2709()
minDuration()
public LevelBasedValue
d()
maxDuration()
comp_2710()
maxDuration()
public LevelBasedValue
e()
minAmplifier()
comp_2711()
minAmplifier()
public LevelBasedValue
f()
maxAmplifier()
comp_2712()
maxAmplifier()