Uses of Record Class
net.minecraft.enchantment.Enchantment.Cost
Packages that use Enchantment.Cost
-
Uses of Enchantment.Cost in net.minecraft.enchantment
Fields in net.minecraft.enchantment declared as Enchantment.CostModifier 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.Fields in net.minecraft.enchantment with type parameters of type Enchantment.CostModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Enchantment.Cost> Enchantment.Cost.CODEC
Methods in net.minecraft.enchantment that return Enchantment.CostModifier 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.Methods in net.minecraft.enchantment with parameters of type Enchantment.CostModifier 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) Constructors in net.minecraft.enchantment with parameters of type Enchantment.CostModifierConstructorDescriptionDefinition
(RegistryEntryList<Item> registryEntryList, Optional<RegistryEntryList<Item>> optional, int int2, int int3, Enchantment.Cost cost, Enchantment.Cost cost2, int int4, List<AttributeModifierSlot> list)