Uses of Record Class
net.minecraft.world.item.enchantment.Enchantment.EnchantmentDefinition
-
Uses of Enchantment.EnchantmentDefinition in net.minecraft.world.item.enchantment
Modifier and TypeFieldDescriptionprivate final Enchantment.EnchantmentDefinition
Enchantment.Builder.definition
private final Enchantment.EnchantmentDefinition
Enchantment.definition
The field for thedefinition
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<Enchantment.EnchantmentDefinition> Enchantment.EnchantmentDefinition.CODEC
Modifier 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_) Modifier and TypeMethodDescriptionstatic Enchantment.Builder
Enchantment.enchantment
(Enchantment.EnchantmentDefinition p_345873_) ModifierConstructorDescriptionBuilder
(Enchantment.EnchantmentDefinition p_345317_) Enchantment
(Component description, Enchantment.EnchantmentDefinition definition, HolderSet<Enchantment> exclusiveSet, DataComponentMap effects) Creates an instance of aEnchantment
record class.