net.minecraft.world.item.enchantment

public record Enchantment$EnchantmentDefinition

dac$c
net.minecraft.world.item.enchantment.Enchantment$EnchantmentDefinition
net.minecraft.class_1887$class_9427
net.minecraft.unmapped.C_jxtrubuh$C_ryljcnwe
net.minecraft.enchantment.Enchantment$Definition
net.minecraft.enchantment.Enchantment$Properties
net.minecraft.src.C_1505_$C_313387_
net.minecraft.world.item.enchantment.Enchantment$c

Field summary

Modifier and TypeField
final HolderSet<Item>
b
supportedItems
comp_2506
f_rogfkcbc
supportedItems
supportedItems
f_316739_
final Optional<HolderSet<Item>>
c
primaryItems
comp_2507
f_ayqetlor
primaryItems
primaryItems
f_314876_
private final int
d
weight
comp_2508
f_mpbjmhqy
weight
weight
f_315386_
private final int
e
maxLevel
comp_2509
f_vnkmtcmp
maxLevel
maxLevel
f_315828_
private final Enchantment$Cost
f
minCost
comp_2510
f_pbhrhxqg
minCost
minCost
f_316239_
private final Enchantment$Cost
g
maxCost
comp_2511
f_gisrrhco
maxCost
maxCost
f_316226_
private final int
h
anvilCost
comp_2512
f_ctbdgdbd
anvilCost
anvilCost
f_317020_
private final List<EquipmentSlotGroup>
i
slots
comp_2513
f_fdyzmkpa
slots
slots
f_315895_
public static final com.mojang.serialization.MapCodec<Enchantment$EnchantmentDefinition>
a
CODEC
field_51650
f_hbjnekpk
CODEC
CODEC
f_336673_

Constructor summary

ModifierConstructor
public (HolderSet<Item> supportedItems, Optional<HolderSet<Item>> primaryItems, int weight, int maxLevel, Enchantment$Cost minCost, Enchantment$Cost maxCost, int anvilCost, List<EquipmentSlotGroup> slots)

Method summary

Modifier and TypeMethod
public HolderSet<Item>
a()
supportedItems()
comp_2506()
m_pduuairl()
supportedItems()
supportedItems()
f_316739_()
public Optional<HolderSet<Item>>
b()
primaryItems()
comp_2507()
m_lwysoqje()
primaryItems()
primaryItems()
f_314876_()
public int
c()
weight()
comp_2508()
m_flwausxm()
weight()
weight()
f_315386_()
public int
d()
maxLevel()
comp_2509()
m_wyxwoews()
maxLevel()
maxLevel()
f_315828_()
public Enchantment$Cost
e()
minCost()
comp_2510()
m_tmkfghbb()
minCost()
minCost()
f_316239_()
public Enchantment$Cost
f()
maxCost()
comp_2511()
m_ecuavfkg()
maxCost()
maxCost()
f_316226_()
public int
g()
anvilCost()
comp_2512()
m_wgjjkojv()
anvilCost()
anvilCost()
f_317020_()
public List<EquipmentSlotGroup>
h()
slots()
comp_2513()
m_hsyyhbbx()
slots()
slots()
f_315895_()