Class Enchantment.Builder
java.lang.Object
net.minecraft.world.item.enchantment.Enchantment.Builder
- Enclosing class:
Enchantment
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Enchantment.EnchantmentDefinition
private final Map
<DataComponentType<?>, List<?>> private final DataComponentMap.Builder
private HolderSet
<Enchantment> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(ResourceLocation p_343227_) exclusiveWith
(HolderSet<Enchantment> p_342789_) private <E> List
<E> getEffectsList
(DataComponentType<List<E>> p_343556_) withEffect
(DataComponentType<List<ConditionalEffect<E>>> p_344612_, E p_343461_) withEffect
(DataComponentType<List<ConditionalEffect<E>>> p_345040_, E p_342593_, LootItemCondition.Builder p_344651_) withEffect
(DataComponentType<List<EnchantmentAttributeEffect>> p_342540_, EnchantmentAttributeEffect p_344032_) withEffect
(DataComponentType<List<TargetedConditionalEffect<E>>> p_342938_, EnchantmentTarget p_342145_, EnchantmentTarget p_345458_, E p_344837_) withEffect
(DataComponentType<List<TargetedConditionalEffect<E>>> p_343061_, EnchantmentTarget p_342247_, EnchantmentTarget p_344619_, E p_344716_, LootItemCondition.Builder p_344245_) withEffect
(DataComponentType<Unit> p_344219_) withSpecialEffect
(DataComponentType<E> p_342163_, E p_344148_)
-
Field Details
-
definition
-
exclusiveSet
-
effectLists
-
effectMapBuilder
-
-
Constructor Details
-
Builder
-
-
Method Details
-
exclusiveWith
-
withEffect
public <E> Enchantment.Builder withEffect(DataComponentType<List<ConditionalEffect<E>>> p_345040_, E p_342593_, LootItemCondition.Builder p_344651_) -
withEffect
public <E> Enchantment.Builder withEffect(DataComponentType<List<ConditionalEffect<E>>> p_344612_, E p_343461_) -
withEffect
public <E> Enchantment.Builder withEffect(DataComponentType<List<TargetedConditionalEffect<E>>> p_343061_, EnchantmentTarget p_342247_, EnchantmentTarget p_344619_, E p_344716_, LootItemCondition.Builder p_344245_) -
withEffect
public <E> Enchantment.Builder withEffect(DataComponentType<List<TargetedConditionalEffect<E>>> p_342938_, EnchantmentTarget p_342145_, EnchantmentTarget p_345458_, E p_344837_) -
withEffect
public Enchantment.Builder withEffect(DataComponentType<List<EnchantmentAttributeEffect>> p_342540_, EnchantmentAttributeEffect p_344032_) -
withSpecialEffect
-
withEffect
-
getEffectsList
-
build
-