Uses of Record Class
net.minecraft.enchantment.Enchantment.Cost
-
Uses of Enchantment.Cost in net.minecraft.enchantment
Modifier and TypeFieldDescriptionprivate final Enchantment.Cost
Enchantment.Properties.maxCost
The field for themaxCost
record component.private final Enchantment.Cost
Enchantment.Properties.minCost
The field for theminCost
record component.Modifier and TypeMethodDescriptionstatic Enchantment.Cost
Enchantment.constantCost
(int base) static Enchantment.Cost
Enchantment.leveledCost
(int base, int perLevel) Enchantment.Properties.maxCost()
Returns the value of themaxCost
record component.Enchantment.Properties.minCost()
Returns the value of theminCost
record component.Modifier and TypeMethodDescriptionstatic Enchantment.Properties
Enchantment.properties
(TagKey<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, EquipmentSlot[] slots) static Enchantment.Properties
Enchantment.properties
(TagKey<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, FeatureSet requiredFeatures, EquipmentSlot[] slots) static Enchantment.Properties
Enchantment.properties
(TagKey<Item> supportedItems, TagKey<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, EquipmentSlot[] slots) ModifierConstructorDescriptionProperties
(TagKey<Item> tagKey, Optional<TagKey<Item>> optional, int int2, int int3, Enchantment.Cost cost, Enchantment.Cost cost2, int int4, FeatureSet featureSet, EquipmentSlot[] equipmentSlot)