Uses of Record Class
net.minecraft.enchantment.Enchantment.Definition
-
Uses of Enchantment.Definition in net.minecraft.enchantment
Modifier and TypeFieldDescriptionprivate final Enchantment.Definition
Enchantment.Builder.definition
private final Enchantment.Definition
Enchantment.definition
The field for thedefinition
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<Enchantment.Definition> Enchantment.Definition.CODEC
Modifier 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) Modifier and TypeMethodDescriptionstatic Enchantment.Builder
Enchantment.builder
(Enchantment.Definition definition) ModifierConstructorDescriptionBuilder
(Enchantment.Definition properties) Enchantment
(Text text, Enchantment.Definition definition, RegistryEntryList<Enchantment> registryEntryList, ComponentMap componentMap)