primaryItems
The field for the
primaryItems record component.Enchantmentprivate final intanvilCost record component.static final com.mojang.serialization.MapCodec<Enchantment.EnchantmentDefinition> private final Enchantment.CostmaxCost record component.private final intmaxLevel record component.private final Enchantment.CostminCost record component.primaryItems record component.private final List<EquipmentSlotGroup> slots record component.supportedItems record component.private final intweight record component.EnchantmentDefinition(HolderSet<Item> supportedItems,
Optional<HolderSet<Item>> primaryItems,
int weight,
int maxLevel,
Enchantment.Cost minCost,
Enchantment.Cost maxCost,
int anvilCost,
List<EquipmentSlotGroup> slots) EnchantmentDefinition record class.intanvilCost record component.final booleanfinal inthashCode()maxCost()maxCost record component.intmaxLevel()maxLevel record component.minCost()minCost record component.primaryItems record component.slots()slots record component.supportedItems record component.final StringtoString()intweight()weight record component.supportedItems record component.primaryItems record component.weight record component.maxLevel record component.minCost record component.maxCost record component.anvilCost record component.slots record component.EnchantmentDefinition record class.supportedItems - the value for the supportedItems record componentprimaryItems - the value for the primaryItems record componentweight - the value for the weight record componentmaxLevel - the value for the maxLevel record componentminCost - the value for the minCost record componentmaxCost - the value for the maxCost record componentanvilCost - the value for the anvilCost record componentslots - the value for the slots record componentObjects::equals(Object,Object); primitive components are compared with '=='.supportedItems record component.supportedItems record componentprimaryItems record component.primaryItems record componentweight record component.weight record componentmaxLevel record component.maxLevel record componentminCost record component.minCost record componentmaxCost record component.maxCost record componentanvilCost record component.anvilCost record componentslots record component.slots record component