net.minecraft.world.item.enchantment.providers

public record EnchantmentsByCost

implements EnchantmentProvider

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

Field summary

Modifier and TypeField
private final HolderSet<Enchantment>
c
enchantments
comp_2764
enchantments
private final IntProvider
d
cost
comp_2765
cost
public static final com.mojang.serialization.MapCodec<EnchantmentsByCost>
b
CODEC
field_51732
CODEC

Constructor summary

ModifierConstructor
public (HolderSet<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<EnchantmentsByCost>
a()
codec()
method_60265()
getCodec()
public HolderSet<Enchantment>
b()
enchantments()
comp_2764()
enchantments()
public IntProvider
c()
cost()
comp_2765()
cost()