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> p_345097_, int p_335557_, int p_336051_, Enchantment.Cost p_336176_, Enchantment.Cost p_335380_, int p_335569_, EquipmentSlotGroup... p_345444_) Enchantment.definition
(HolderSet<Item> p_345738_, HolderSet<Item> p_345428_, int p_335506_, int p_335598_, Enchantment.Cost p_336185_, Enchantment.Cost p_335768_, int p_335409_, EquipmentSlotGroup... p_344907_) Methods in net.minecraft.world.item.enchantment with parameters of type Enchantment.EnchantmentDefinitionModifier and TypeMethodDescriptionstatic Enchantment.Builder
Enchantment.enchantment
(Enchantment.EnchantmentDefinition p_345873_) Constructors in net.minecraft.world.item.enchantment with parameters of type Enchantment.EnchantmentDefinitionModifierConstructorDescriptionBuilder
(Enchantment.EnchantmentDefinition p_345317_) Enchantment
(Component description, Enchantment.EnchantmentDefinition definition, HolderSet<Enchantment> exclusiveSet, DataComponentMap effects) Creates an instance of aEnchantment
record class.