primaryItems
primaryItems
记录组件的字段。Enchantment
private final int
anvilCost
记录组件的字段。static final com.mojang.serialization.MapCodec<Enchantment.EnchantmentDefinition>
private final Enchantment.Cost
maxCost
记录组件的字段。private final int
maxLevel
记录组件的字段。private final Enchantment.Cost
minCost
记录组件的字段。primaryItems
记录组件的字段。private final List<EquipmentSlotGroup>
slots
记录组件的字段。supportedItems
记录组件的字段。private final int
weight
记录组件的字段。EnchantmentDefinition(HolderSet<Item> supportedItems,
Optional<HolderSet<Item>> primaryItems,
int weight,
int maxLevel,
Enchantment.Cost minCost,
Enchantment.Cost maxCost,
int anvilCost,
List<EquipmentSlotGroup> slots)
EnchantmentDefinition
记录类的实例。int
anvilCost
记录组件的值。final boolean
final int
hashCode()
maxCost()
maxCost
记录组件的值。int
maxLevel()
maxLevel
记录组件的值。minCost()
minCost
记录组件的值。primaryItems
记录组件的值。slots()
slots
记录组件的值。supportedItems
记录组件的值。final String
toString()
int
weight()
weight
记录组件的值。supportedItems
记录组件的字段。primaryItems
记录组件的字段。weight
记录组件的字段。maxLevel
记录组件的字段。minCost
记录组件的字段。maxCost
记录组件的字段。anvilCost
记录组件的字段。slots
记录组件的字段。EnchantmentDefinition
记录类的实例。supportedItems
- supportedItems
记录组件的值primaryItems
- primaryItems
记录组件的值weight
- weight
记录组件的值maxLevel
- maxLevel
记录组件的值minCost
- minCost
记录组件的值maxCost
- maxCost
记录组件的值anvilCost
- anvilCost
记录组件的值slots
- slots
记录组件的值Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较supportedItems
记录组件的值。supportedItems
记录组件的值primaryItems
记录组件的值。primaryItems
记录组件的值weight
记录组件的值。weight
记录组件的值maxLevel
记录组件的值。maxLevel
记录组件的值minCost
记录组件的值。minCost
记录组件的值maxCost
记录组件的值。maxCost
记录组件的值anvilCost
记录组件的值。anvilCost
记录组件的值slots
记录组件的值。slots
记录组件的值