net.minecraft.world.item.enchantment.providers

public record EnchantmentsByCostWithDifficulty

implements EnchantmentProvider

diy
net.minecraft.world.item.enchantment.providers.EnchantmentsByCostWithDifficulty
net.minecraft.class_9744

Field summary

Modifier and TypeField
private final HolderSet<Enchantment>
d
enchantments
comp_2766
private final int
e
minCost
comp_2767
private final int
f
maxCostSpan
comp_2768
public static final int
b
MAX_ALLOWED_VALUE_PART
field_52056
public static final com.mojang.serialization.MapCodec<EnchantmentsByCostWithDifficulty>
c
CODEC
field_51733

Constructor summary

ModifierConstructor
public (HolderSet<Enchantment> arg0, int arg1, int arg2)

Method summary

Modifier and TypeMethod
public void
a(dba arg0, dht$a arg1, baq arg2, bvn 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)
public com.mojang.serialization.MapCodec<EnchantmentsByCostWithDifficulty>
a()
codec()
method_60265()
public HolderSet<Enchantment>
b()
enchantments()
comp_2766()
public int
c()
minCost()
comp_2767()
public int
d()
maxCostSpan()
comp_2768()