net.minecraft.world.item.enchantment.providers

public record EnchantmentsByCost

implements EnchantmentProvider

dbl
net.minecraft.world.item.enchantment.providers.EnchantmentsByCost
net.minecraft.class_9743
net.minecraft.unmapped.C_ycmdmexf
net.minecraft.enchantment.provider.ByCostEnchantmentProvider
net.minecraft.enchantment.provider.ByCostEnchantmentProvider
net.minecraft.src.C_336441_
net.minecraft.world.item.enchantment.providers.EnchantmentsByCost

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(cuq arg0, dai$a arg1, ayw arg2, bqp 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)
m_mwqiigvy(C_sddaxwyk arg0, C_qlclfxvn$C_vbojeisc arg1, C_rlomrsco arg2, C_jiailwzt arg3)
provideEnchantments(ItemStack arg0, ItemEnchantmentsComponent$Builder arg1, Random arg2, LocalDifficulty arg3)
enchant(ItemStack arg0, ItemEnchantmentsComponent$Builder arg1, RandomGenerator arg2, LocalDifficulty arg3)
m_338356_(C_1391_ p_344702_, C_313873_$C_313506_ p_344509_, C_212974_ p_345381_, C_469_ arg3)
public com.mojang.serialization.MapCodec<EnchantmentsByCost>
a()
codec()
method_60265()
m_hgmxhojx()
getCodec()
getCodec()
m_339126_()
public HolderSet<Enchantment>
b()
enchantments()
comp_2764()
m_xgzilrvg()
enchantments()
enchantments()
f_337027_()
public IntProvider
c()
cost()
comp_2765()
m_rqapjclm()
cost()
cost()
f_336777_()