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 TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Enchantment.Cost> Enchantment.Cost.CODEC
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
(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_) ModifierConstructorDescriptionEnchantmentDefinition
(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.