net.minecraft.enchantment

public record Enchantment$Definition

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

Field summary

Modifier and TypeField
private final RegistryEntryList<Item>
supportedItems
comp_2506
supportedItems
private final Optional<RegistryEntryList<Item>>
primaryItems
comp_2507
primaryItems
private final int
weight
comp_2508
weight
private final int
maxLevel
comp_2509
maxLevel
private final Enchantment$Cost
minCost
comp_2510
minCost
private final Enchantment$Cost
maxCost
comp_2511
maxCost
private final int
anvilCost
comp_2512
anvilCost
private final List<AttributeModifierSlot>
slots
comp_2513
slots
public static final com.mojang.serialization.MapCodec<Enchantment$Definition>
CODEC
field_51650
CODEC

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>
supportedItems()
comp_2506()
supportedItems()
public Optional<RegistryEntryList<Item>>
primaryItems()
comp_2507()
primaryItems()
public int
weight()
comp_2508()
weight()
public int
maxLevel()
comp_2509()
maxLevel()
public Enchantment$Cost
minCost()
comp_2510()
minCost()
public Enchantment$Cost
maxCost()
comp_2511()
maxCost()
public int
anvilCost()
comp_2512()
anvilCost()
public List<AttributeModifierSlot>
slots()
comp_2513()
slots()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_60072(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_60072(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)