net.minecraft.world.item.enchantment

public record Enchantment$EnchantmentDefinition

dhn$c
net.minecraft.world.item.enchantment.Enchantment$EnchantmentDefinition
net.minecraft.class_1887$class_9427

Field summary

Modifier and TypeField
final HolderSet<Item>
b
supportedItems
comp_2506
final Optional<HolderSet<Item>>
c
primaryItems
comp_2507
private final int
d
weight
comp_2508
private final int
e
maxLevel
comp_2509
private final Enchantment$Cost
f
minCost
comp_2510
private final Enchantment$Cost
g
maxCost
comp_2511
private final int
h
anvilCost
comp_2512
private final List<EquipmentSlotGroup>
i
slots
comp_2513
public static final com.mojang.serialization.MapCodec<Enchantment$EnchantmentDefinition>
a
CODEC
field_51650

Constructor summary

ModifierConstructor
public (HolderSet<Item> arg0, Optional<HolderSet<Item>> arg1, int arg2, int arg3, Enchantment$Cost arg4, Enchantment$Cost arg5, int arg6, List<EquipmentSlotGroup> arg7)

Method summary

Modifier and TypeMethod
public HolderSet<Item>
a()
supportedItems()
comp_2506()
public Optional<HolderSet<Item>>
b()
primaryItems()
comp_2507()
public int
c()
weight()
comp_2508()
public int
d()
maxLevel()
comp_2509()
public Enchantment$Cost
e()
minCost()
comp_2510()
public Enchantment$Cost
f()
maxCost()
comp_2511()
public int
g()
anvilCost()
comp_2512()
public List<EquipmentSlotGroup>
h()
slots()
comp_2513()