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.CostEnchantment.Definition.maxCostThe field for themaxCostrecord component.private final Enchantment.CostEnchantment.Definition.minCostThe field for theminCostrecord component.Fields in net.minecraft.enchantment with type parameters of type Enchantment.CostModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Enchantment.Cost> Enchantment.Cost.CODECMethods in net.minecraft.enchantment that return Enchantment.CostModifier and TypeMethodDescriptionstatic Enchantment.CostEnchantment.constantCost(int base) static Enchantment.CostEnchantment.leveledCost(int base, int perLevel) Enchantment.Definition.maxCost()Returns the value of themaxCostrecord component.Enchantment.Definition.minCost()Returns the value of theminCostrecord component.Methods in net.minecraft.enchantment with parameters of type Enchantment.CostModifier and TypeMethodDescriptionstatic Enchantment.DefinitionEnchantment.definition(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) static Enchantment.DefinitionEnchantment.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)