net.minecraft.world.item.enchantment.providers

public record EnchantmentsByCostWithDifficulty

implements EnchantmentProvider

dfk
net.minecraft.world.item.enchantment.providers.EnchantmentsByCostWithDifficulty
net.minecraft.class_9744
net.minecraft.unmapped.C_swckftoh
net.minecraft.enchantment.provider.ByCostWithDifficultyEnchantmentProvider
net.minecraft.enchantment.provider.ByCostWithDifficultyEnchantmentProvider
net.minecraft.src.C_336493_
net.minecraft.world.item.enchantment.providers.EnchantmentsByCostWithDifficulty

Field summary

Modifier and TypeField
private final HolderSet<Enchantment>
d
enchantments
comp_2766
f_ejcvhlnb
enchantments
enchantments
f_337635_
private final int
e
minCost
comp_2767
f_iiietjbf
minCost
minCost
f_337475_
private final int
f
maxCostSpan
comp_2768
f_clsknluy
maxCostSpan
maxCostSpan
f_336793_
public static final int
b
MAX_ALLOWED_VALUE_PART
field_52056
f_jrparhel
MAX_COST
MAX_COST
f_337157_
public static final com.mojang.serialization.MapCodec<EnchantmentsByCostWithDifficulty>
c
CODEC
field_51733
f_xqcbrxxk
CODEC
CODEC
f_337299_

Constructor summary

ModifierConstructor
public (HolderSet<Enchantment> enchantments, int minCost, int maxCostSpan)

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)
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_344834_, C_313873_$C_313506_ p_343505_, C_212974_ p_342467_, C_469_ arg3)
public com.mojang.serialization.MapCodec<EnchantmentsByCostWithDifficulty>
a()
codec()
method_60265()
m_hgmxhojx()
getCodec()
getCodec()
m_339126_()
public HolderSet<Enchantment>
b()
enchantments()
comp_2766()
m_bvgdmzta()
enchantments()
enchantments()
f_337635_()
public int
c()
minCost()
comp_2767()
m_awsewlhb()
minCost()
minCost()
f_337475_()
public int
d()
maxCostSpan()
comp_2768()
m_vejkptgh()
maxCostSpan()
maxCostSpan()
f_336793_()