net.minecraft.world.item.enchantment.providers

public record SingleEnchantment

implements EnchantmentProvider

dfl
net.minecraft.world.item.enchantment.providers.SingleEnchantment
net.minecraft.class_9745
net.minecraft.enchantment.provider.SingleEnchantmentProvider
net.minecraft.world.item.enchantment.providers.SingleEnchantment

Field summary

Modifier and TypeField
private final Holder<Enchantment>
c
enchantment
comp_2769
enchantment
private final IntProvider
d
level
comp_2770
level
public static final com.mojang.serialization.MapCodec<SingleEnchantment>
b
CODEC
field_51734
CODEC

Constructor summary

ModifierConstructor
public (Holder<Enchantment> arg0, IntProvider arg1)

Method summary

Modifier and TypeMethod
public void
a(cxp arg0, def$a arg1, bam arg2, bth arg3)
enchant(ItemStack arg0, ItemEnchantments$Mutable arg1, RandomSource arg2, DifficultyInstance arg3)
method_60266(class_1799 arg0, class_9304$class_9305 arg1, class_5819 arg2, class_1266 arg3)
provideEnchantments(ItemStack arg0, ItemEnchantmentsComponent$Builder arg1, Random arg2, LocalDifficulty arg3)
public com.mojang.serialization.MapCodec<SingleEnchantment>
a()
codec()
method_60265()
getCodec()
public Holder<Enchantment>
b()
enchantment()
comp_2769()
enchantment()
public IntProvider
c()
level()
comp_2770()
level()