net.minecraft.world.item.enchantment

public record Enchantment$EnchantmentDefinition

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

Field summary

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

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()
supportedItems()
public Optional<HolderSet<Item>>
b()
primaryItems()
comp_2507()
primaryItems()
public int
c()
weight()
comp_2508()
weight()
public int
d()
maxLevel()
comp_2509()
maxLevel()
public Enchantment$Cost
e()
minCost()
comp_2510()
minCost()
public Enchantment$Cost
f()
maxCost()
comp_2511()
maxCost()
public int
g()
anvilCost()
comp_2512()
anvilCost()
public List<EquipmentSlotGroup>
h()
slots()
comp_2513()
slots()