Uses of Record Class
net.minecraft.enchantment.Enchantment.Cost
-
Uses of Enchantment.Cost in net.minecraft.enchantment
Modifier and TypeFieldDescriptionprivate final Enchantment.Cost
Enchantment.Definition.maxCost
The field for themaxCost
record component.private final Enchantment.Cost
Enchantment.Definition.minCost
The field for theminCost
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Enchantment.Cost> Enchantment.Cost.CODEC
Modifier and TypeMethodDescriptionstatic Enchantment.Cost
Enchantment.constantCost
(int base) static Enchantment.Cost
Enchantment.leveledCost
(int base, int perLevel) Enchantment.Definition.maxCost()
Returns the value of themaxCost
record component.Enchantment.Definition.minCost()
Returns the value of theminCost
record component.Modifier and TypeMethodDescriptionstatic Enchantment.Definition
Enchantment.definition
(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) static Enchantment.Definition
Enchantment.definition
(RegistryEntryList<Item> supportedItems, RegistryEntryList<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) ModifierConstructorDescriptionDefinition
(RegistryEntryList<Item> registryEntryList, Optional<RegistryEntryList<Item>> optional, int int2, int int3, Enchantment.Cost cost, Enchantment.Cost cost2, int int4, List<AttributeModifierSlot> list)