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.Methods 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(TagKey<Item> p_335812_, int p_335506_, int p_335598_, Enchantment.Cost p_336185_, Enchantment.Cost p_335768_, int p_335409_, EquipmentSlot... p_335583_) Enchantment.definition(TagKey<Item> p_338699_, int p_338488_, int p_338497_, Enchantment.Cost p_338563_, Enchantment.Cost p_338689_, int p_338253_, FeatureFlagSet p_338531_, EquipmentSlot... p_338705_) Enchantment.definition(TagKey<Item> p_335552_, TagKey<Item> p_336174_, int p_335557_, int p_336051_, Enchantment.Cost p_336176_, Enchantment.Cost p_335380_, int p_335569_, EquipmentSlot... p_335470_) Constructors in net.minecraft.world.item.enchantment with parameters of type Enchantment.CostModifierConstructorDescriptionEnchantmentDefinition(TagKey<Item> supportedItems, Optional<TagKey<Item>> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, FeatureFlagSet requiredFeatures, EquipmentSlot[] slots) Creates an instance of aEnchantmentDefinitionrecord class.