net.minecraft.enchantment

public record Enchantment$Definition

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

Field summary

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

Constructor summary

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

Method summary

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