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> pSupportedItems, int pWeight, int pMaxLevel, Enchantment.Cost pMinCost, Enchantment.Cost pMaxCost, int pAnvilCost, EquipmentSlotGroup... pSlots) Enchantment.definition
(HolderSet<Item> pSupportedItems, HolderSet<Item> pPrimaryItems, int pWeight, int pMaxLevel, Enchantment.Cost pMinCost, Enchantment.Cost pMaxCost, int pAnvilCost, EquipmentSlotGroup... pSlots) Methods in net.minecraft.world.item.enchantment with parameters of type Enchantment.EnchantmentDefinitionModifier and TypeMethodDescriptionstatic Enchantment.Builder
Enchantment.enchantment
(Enchantment.EnchantmentDefinition pDefinition) Constructors in net.minecraft.world.item.enchantment with parameters of type Enchantment.EnchantmentDefinitionModifierConstructorDescriptionBuilder
(Enchantment.EnchantmentDefinition pDefinition) Enchantment
(Component description, Enchantment.EnchantmentDefinition definition, HolderSet<Enchantment> exclusiveSet, DataComponentMap effects) Creates an instance of aEnchantment
record class.