Uses of Record Class
net.minecraft.world.item.enchantment.Enchantment.Cost
Packages that use Enchantment.Cost
-
Uses of Enchantment.Cost in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as Enchantment.CostModifier and TypeFieldDescriptionprivate final Enchantment.Cost
Enchantment.EnchantmentDefinition.maxCost
The field for themaxCost
record component.private final Enchantment.Cost
Enchantment.EnchantmentDefinition.minCost
The field for theminCost
record component.Fields in net.minecraft.world.item.enchantment with type parameters of type Enchantment.CostModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Enchantment.Cost> Enchantment.Cost.CODEC
Methods in net.minecraft.world.item.enchantment that return Enchantment.CostModifier and TypeMethodDescriptionstatic Enchantment.Cost
Enchantment.constantCost
(int pCost) static Enchantment.Cost
Enchantment.dynamicCost
(int pBase, int pPerLevel) Enchantment.EnchantmentDefinition.maxCost()
Returns the value of themaxCost
record component.Enchantment.EnchantmentDefinition.minCost()
Returns the value of theminCost
record component.Methods in net.minecraft.world.item.enchantment with parameters of type Enchantment.CostModifier and TypeMethodDescriptionEnchantment.definition
(HolderSet<Item> pSupportedItems, int pWeight, int pMaxLevel, Enchantment.Cost pMinCost, Enchantment.Cost pMaxCost, int pAnvilCost, EquipmentSlotGroup... pSlots) Enchantment.definition
(HolderSet<Item> pSupportedItems, HolderSet<Item> pPrimaryItems, int pWeight, int pMaxLevel, Enchantment.Cost pMinCost, Enchantment.Cost pMaxCost, int pAnvilCost, EquipmentSlotGroup... pSlots) Constructors in net.minecraft.world.item.enchantment with parameters of type Enchantment.CostModifierConstructorDescriptionEnchantmentDefinition
(HolderSet<Item> supportedItems, Optional<HolderSet<Item>> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, List<EquipmentSlotGroup> slots) Creates an instance of aEnchantmentDefinition
record class.