net.minecraft.enchantment.provider

public record ByCostEnchantmentProvider

implements EnchantmentProvider

net.minecraft.world.item.enchantment.providers.EnchantmentsByCost
net.minecraft.class_9743
net.minecraft.enchantment.provider.ByCostEnchantmentProvider

Field summary

Modifier and TypeField
private final RegistryEntryList<Enchantment>
enchantments
comp_2764
enchantments
private final IntProvider
cost
comp_2765
cost
public static final com.mojang.serialization.MapCodec<ByCostEnchantmentProvider>
CODEC
field_51732
CODEC

Constructor summary

ModifierConstructor
public (RegistryEntryList<Enchantment> enchantments, IntProvider cost)

Method summary

Modifier and TypeMethod
public void
enchant(ItemStack item, ItemEnchantments$Mutable itemEnchantments, RandomSource random, DifficultyInstance difficulty)
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<ByCostEnchantmentProvider>
codec()
method_60265()
getCodec()
public RegistryEntryList<Enchantment>
enchantments()
comp_2764()
enchantments()
public IntProvider
cost()
comp_2765()
cost()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_60268(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_60268(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)