Uses of Record Class
net.minecraft.world.item.enchantment.Enchantment.Cost
-
Uses of Enchantment.Cost in net.minecraft.world.item.enchantment
Modifier 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.Modifier and TypeMethodDescriptionstatic Enchantment.Cost
Enchantment.constantCost
(int p_336195_) static Enchantment.Cost
Enchantment.dynamicCost
(int p_336066_, int p_336018_) Enchantment.EnchantmentDefinition.maxCost()
Returns the value of themaxCost
record component.Enchantment.EnchantmentDefinition.minCost()
Returns the value of theminCost
record component.Modifier 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_) ModifierConstructorDescriptionEnchantmentDefinition
(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 aEnchantmentDefinition
record class.