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.CostEnchantment.EnchantmentDefinition.maxCostThe field for themaxCostrecord component.private final Enchantment.CostEnchantment.EnchantmentDefinition.minCostThe field for theminCostrecord 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.CODECMethods in net.minecraft.world.item.enchantment that return Enchantment.CostModifier and TypeMethodDescriptionstatic Enchantment.CostEnchantment.constantCost(int p_336195_) static Enchantment.CostEnchantment.dynamicCost(int p_336066_, int p_336018_) Enchantment.EnchantmentDefinition.maxCost()Returns the value of themaxCostrecord component.Enchantment.EnchantmentDefinition.minCost()Returns the value of theminCostrecord component.Methods in net.minecraft.world.item.enchantment with parameters of type Enchantment.CostModifier and TypeMethodDescriptionEnchantment.definition(HolderSet<Item> p_345097_, int p_335557_, int p_336051_, Enchantment.Cost p_336176_, Enchantment.Cost p_335380_, int p_335569_, EquipmentSlotGroup... p_345444_) Enchantment.definition(HolderSet<Item> p_345738_, HolderSet<Item> p_345428_, int p_335506_, int p_335598_, Enchantment.Cost p_336185_, Enchantment.Cost p_335768_, int p_335409_, EquipmentSlotGroup... p_344907_) 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 aEnchantmentDefinitionrecord class.