net.minecraft.enchantment.effect.entity

public record ApplyExhaustionEnchantmentEffect

implements EnchantmentEntityEffect

net.minecraft.world.item.enchantment.effects.ApplyExhaustion
net.minecraft.class_12241
net.minecraft.enchantment.effect.entity.ApplyExhaustionEnchantmentEffect

Field summary

Modifier and TypeField
private final EnchantmentLevelBasedValue
amount
comp_5159
amount
public static final com.mojang.serialization.MapCodec<ApplyExhaustionEnchantmentEffect>
CODEC
field_63952
CODEC

Constructor summary

ModifierConstructor
public (EnchantmentLevelBasedValue amount)

Method summary

Modifier and TypeMethod
public void
apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position)
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<ApplyExhaustionEnchantmentEffect>
codec()
method_60219()
getCodec()
public EnchantmentLevelBasedValue
amount()
comp_5159()
amount()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_75883(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_75883(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)