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.Definition
Enchantment.Builder.definition
private final Enchantment.Definition
Enchantment.definition
The field for thedefinition
record component.Fields in net.minecraft.enchantment with type parameters of type Enchantment.DefinitionModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<Enchantment.Definition> Enchantment.Definition.CODEC
Methods in net.minecraft.enchantment that return Enchantment.DefinitionModifier and TypeMethodDescriptionEnchantment.definition()
Returns the value of thedefinition
record component.static Enchantment.Definition
Enchantment.definition
(RegistryEntryList<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, AttributeModifierSlot[] slots) static Enchantment.Definition
Enchantment.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.Builder
Enchantment.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)