primaryItems
The field for the
primaryItems
record component.Enchantment
private final int
anvilCost
record component.static final com.mojang.serialization.MapCodec<Enchantment.EnchantmentDefinition>
private final Enchantment.Cost
maxCost
record component.private final int
maxLevel
record component.private final Enchantment.Cost
minCost
record component.primaryItems
record component.private final List<EquipmentSlotGroup>
slots
record component.supportedItems
record component.private final int
weight
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.int
anvilCost
record component.final boolean
final int
hashCode()
maxCost()
maxCost
record component.int
maxLevel()
maxLevel
record component.minCost()
minCost
record component.primaryItems
record component.slots()
slots
record component.supportedItems
record component.final String
toString()
int
weight()
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