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_344988_) exclusiveWith
(HolderSet<Enchantment> p_346264_) private <E> List
<E> getEffectsList
(DataComponentType<List<E>> p_344770_) withEffect
(DataComponentType<List<ConditionalEffect<E>>> p_345254_, E p_346178_) withEffect
(DataComponentType<List<ConditionalEffect<E>>> p_345261_, E p_346342_, LootItemCondition.Builder p_344864_) withEffect
(DataComponentType<List<EnchantmentAttributeEffect>> p_345372_, EnchantmentAttributeEffect p_345754_) withEffect
(DataComponentType<List<TargetedConditionalEffect<E>>> p_346304_, EnchantmentTarget p_346333_, EnchantmentTarget p_345829_, E p_345094_) withEffect
(DataComponentType<List<TargetedConditionalEffect<E>>> p_345227_, EnchantmentTarget p_346076_, EnchantmentTarget p_345283_, E p_346194_, LootItemCondition.Builder p_345933_) withEffect
(DataComponentType<Unit> p_345500_) withSpecialEffect
(DataComponentType<E> p_346431_, E p_344725_)
-
Field Details
-
definition
-
exclusiveSet
-
effectLists
-
effectMapBuilder
-
-
Constructor Details
-
Builder
-
-
Method Details
-
exclusiveWith
-
withEffect
public <E> Enchantment.Builder withEffect(DataComponentType<List<ConditionalEffect<E>>> p_345261_, E p_346342_, LootItemCondition.Builder p_344864_) -
withEffect
public <E> Enchantment.Builder withEffect(DataComponentType<List<ConditionalEffect<E>>> p_345254_, E p_346178_) -
withEffect
public <E> Enchantment.Builder withEffect(DataComponentType<List<TargetedConditionalEffect<E>>> p_345227_, EnchantmentTarget p_346076_, EnchantmentTarget p_345283_, E p_346194_, LootItemCondition.Builder p_345933_) -
withEffect
public <E> Enchantment.Builder withEffect(DataComponentType<List<TargetedConditionalEffect<E>>> p_346304_, EnchantmentTarget p_346333_, EnchantmentTarget p_345829_, E p_345094_) -
withEffect
public Enchantment.Builder withEffect(DataComponentType<List<EnchantmentAttributeEffect>> p_345372_, EnchantmentAttributeEffect p_345754_) -
withSpecialEffect
-
withEffect
-
getEffectsList
-
build
-