Uses of Record Class
net.minecraft.world.item.enchantment.Enchantment.EnchantmentDefinition
Packages that use Enchantment.EnchantmentDefinition
-
Uses of Enchantment.EnchantmentDefinition in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as Enchantment.EnchantmentDefinitionModifier and TypeFieldDescriptionprivate final Enchantment.EnchantmentDefinition
Enchantment.Builder.definition
private final Enchantment.EnchantmentDefinition
Enchantment.definition
The field for thedefinition
record component.Fields in net.minecraft.world.item.enchantment with type parameters of type Enchantment.EnchantmentDefinitionModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<Enchantment.EnchantmentDefinition> Enchantment.EnchantmentDefinition.CODEC
Methods in net.minecraft.world.item.enchantment that return Enchantment.EnchantmentDefinitionModifier and TypeMethodDescriptionEnchantment.definition()
Returns the value of thedefinition
record component.Enchantment.definition
(HolderSet<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, EquipmentSlotGroup... slots) Enchantment.definition
(HolderSet<Item> supportedItems, HolderSet<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, EquipmentSlotGroup... slots) Methods in net.minecraft.world.item.enchantment with parameters of type Enchantment.EnchantmentDefinitionModifier and TypeMethodDescriptionstatic Enchantment.Builder
Enchantment.enchantment
(Enchantment.EnchantmentDefinition definition) Constructors in net.minecraft.world.item.enchantment with parameters of type Enchantment.EnchantmentDefinitionModifierConstructorDescriptionBuilder
(Enchantment.EnchantmentDefinition definition) Enchantment
(Component description, Enchantment.EnchantmentDefinition definition, HolderSet<Enchantment> exclusiveSet, DataComponentMap effects) Creates an instance of aEnchantment
record class.