primaryItems
The field for the
primaryItems record component.Enchantmentprivate final intanvilCost record component.private final Enchantment.CostmaxCost record component.private final intmaxLevel record component.private final Enchantment.CostminCost record component.primaryItems record component.private final FeatureFlagSetrequiredFeatures record component.private final EquipmentSlot[]slots record component.supportedItems record component.private final intweight record component.EnchantmentDefinition(TagKey<Item> supportedItems,
Optional<TagKey<Item>> primaryItems,
int weight,
int maxLevel,
Enchantment.Cost minCost,
Enchantment.Cost maxCost,
int anvilCost,
FeatureFlagSet requiredFeatures,
EquipmentSlot[] 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.requiredFeatures 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.requiredFeatures 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 componentrequiredFeatures - the value for the requiredFeatures 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 componentrequiredFeatures record component.requiredFeatures record componentslots record component.slots record component