Uses of Record Class
net.minecraft.enchantment.Enchantment.Definition
Packages that use Enchantment.Definition
-
Uses of Enchantment.Definition in net.minecraft.enchantment
Fields in net.minecraft.enchantment declared as Enchantment.DefinitionModifier and TypeFieldDescriptionprivate final Enchantment.DefinitionEnchantment.Builder.definitionprivate final Enchantment.DefinitionEnchantment.definitionThe field for thedefinitionrecord component.Fields in net.minecraft.enchantment with type parameters of type Enchantment.DefinitionModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<Enchantment.Definition> Enchantment.Definition.CODECMethods in net.minecraft.enchantment that return Enchantment.DefinitionModifier and TypeMethodDescriptionEnchantment.definition()Returns the value of thedefinitionrecord component.static Enchantment.DefinitionEnchantment.definition(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) static Enchantment.DefinitionEnchantment.definition(RegistryEntryList<Item> supportedItems, RegistryEntryList<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) Methods in net.minecraft.enchantment with parameters of type Enchantment.DefinitionModifier and TypeMethodDescriptionstatic Enchantment.BuilderEnchantment.builder(Enchantment.Definition definition) Constructors in net.minecraft.enchantment with parameters of type Enchantment.DefinitionModifierConstructorDescriptionBuilder(Enchantment.Definition properties) Enchantment(Text text, Enchantment.Definition definition, RegistryEntryList<Enchantment> registryEntryList, ComponentMap componentMap)