Package net.minecraft.enchantment
Class Enchantment.Builder
java.lang.Object
net.minecraft.enchantment.Enchantment.Builder
- Enclosing class:
Enchantment
- Mappings:
Namespace Name named net/minecraft/enchantment/Enchantment$Builder
intermediary net/minecraft/class_1887$class_9700
official ddy$a
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Enchantment.Definition
private final Map
<ComponentType<?>, List<?>> private final ComponentMap.Builder
private RegistryEntryList
<Enchantment> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddEffect
(ComponentType<List<AttributeEnchantmentEffect>> type, AttributeEnchantmentEffect effect) addEffect
(ComponentType<List<EnchantmentEffectEntry<E>>> effectType, E effect) addEffect
(ComponentType<List<EnchantmentEffectEntry<E>>> effectType, E effect, LootCondition.Builder requirements) addEffect
(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect) addEffect
(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect, LootCondition.Builder requirements) addEffect
(ComponentType<Unit> type) addNonListEffect
(ComponentType<E> type, E effect) build
(Identifier id) exclusiveSet
(RegistryEntryList<Enchantment> exclusiveSet) private <E> List
<E> getEffectsList
(ComponentType<List<E>> type)
-
Field Details
-
definition
- Mappings:
Namespace Name Mixin selector named definition
Lnet/minecraft/enchantment/Enchantment$Builder;definition:Lnet/minecraft/enchantment/Enchantment$Definition;
intermediary field_51645
Lnet/minecraft/class_1887$class_9700;field_51645:Lnet/minecraft/class_1887$class_9427;
official a
Lddy$a;a:Lddy$c;
-
exclusiveSet
- Mappings:
Namespace Name Mixin selector named exclusiveSet
Lnet/minecraft/enchantment/Enchantment$Builder;exclusiveSet:Lnet/minecraft/registry/entry/RegistryEntryList;
intermediary field_51646
Lnet/minecraft/class_1887$class_9700;field_51646:Lnet/minecraft/class_6885;
official b
Lddy$a;b:Lju;
-
effectLists
- Mappings:
Namespace Name Mixin selector named effectLists
Lnet/minecraft/enchantment/Enchantment$Builder;effectLists:Ljava/util/Map;
intermediary field_51647
Lnet/minecraft/class_1887$class_9700;field_51647:Ljava/util/Map;
official c
Lddy$a;c:Ljava/util/Map;
-
effectMap
- Mappings:
Namespace Name Mixin selector named effectMap
Lnet/minecraft/enchantment/Enchantment$Builder;effectMap:Lnet/minecraft/component/ComponentMap$Builder;
intermediary field_51648
Lnet/minecraft/class_1887$class_9700;field_51648:Lnet/minecraft/class_9323$class_9324;
official d
Lddy$a;d:Lkq$a;
-
-
Constructor Details
-
Builder
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/enchantment/Enchantment$Builder;<init>(Lnet/minecraft/enchantment/Enchantment$Definition;)V
intermediary <init>
Lnet/minecraft/class_1887$class_9700;<init>(Lnet/minecraft/class_1887$class_9427;)V
official <init>
Lddy$a;<init>(Lddy$c;)V
-
-
Method Details
-
exclusiveSet
- Mappings:
Namespace Name Mixin selector named exclusiveSet
Lnet/minecraft/enchantment/Enchantment$Builder;exclusiveSet(Lnet/minecraft/registry/entry/RegistryEntryList;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60061
Lnet/minecraft/class_1887$class_9700;method_60061(Lnet/minecraft/class_6885;)Lnet/minecraft/class_1887$class_9700;
official a
Lddy$a;a(Lju;)Lddy$a;
-
addEffect
public <E> Enchantment.Builder addEffect(ComponentType<List<EnchantmentEffectEntry<E>>> effectType, E effect, LootCondition.Builder requirements) - Mappings:
Namespace Name Mixin selector named addEffect
Lnet/minecraft/enchantment/Enchantment$Builder;addEffect(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;Lnet/minecraft/loot/condition/LootCondition$Builder;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60067
Lnet/minecraft/class_1887$class_9700;method_60067(Lnet/minecraft/class_9331;Ljava/lang/Object;Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_1887$class_9700;
official a
Lddy$a;a(Lkt;Ljava/lang/Object;Lezx$a;)Lddy$a;
-
addEffect
public <E> Enchantment.Builder addEffect(ComponentType<List<EnchantmentEffectEntry<E>>> effectType, E effect) - Mappings:
Namespace Name Mixin selector named addEffect
Lnet/minecraft/enchantment/Enchantment$Builder;addEffect(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60066
Lnet/minecraft/class_1887$class_9700;method_60066(Lnet/minecraft/class_9331;Ljava/lang/Object;)Lnet/minecraft/class_1887$class_9700;
official a
Lddy$a;a(Lkt;Ljava/lang/Object;)Lddy$a;
-
addEffect
public <E> Enchantment.Builder addEffect(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect, LootCondition.Builder requirements) - Mappings:
Namespace Name Mixin selector named addEffect
Lnet/minecraft/enchantment/Enchantment$Builder;addEffect(Lnet/minecraft/component/ComponentType;Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;Ljava/lang/Object;Lnet/minecraft/loot/condition/LootCondition$Builder;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60064
Lnet/minecraft/class_1887$class_9700;method_60064(Lnet/minecraft/class_9331;Lnet/minecraft/class_9703;Lnet/minecraft/class_9703;Ljava/lang/Object;Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_1887$class_9700;
official a
Lddy$a;a(Lkt;Ldec;Ldec;Ljava/lang/Object;Lezx$a;)Lddy$a;
-
addEffect
public <E> Enchantment.Builder addEffect(ComponentType<List<TargetedEnchantmentEffect<E>>> type, EnchantmentEffectTarget enchanted, EnchantmentEffectTarget affected, E effect) - Mappings:
Namespace Name Mixin selector named addEffect
Lnet/minecraft/enchantment/Enchantment$Builder;addEffect(Lnet/minecraft/component/ComponentType;Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;Lnet/minecraft/enchantment/effect/EnchantmentEffectTarget;Ljava/lang/Object;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60063
Lnet/minecraft/class_1887$class_9700;method_60063(Lnet/minecraft/class_9331;Lnet/minecraft/class_9703;Lnet/minecraft/class_9703;Ljava/lang/Object;)Lnet/minecraft/class_1887$class_9700;
official a
Lddy$a;a(Lkt;Ldec;Ldec;Ljava/lang/Object;)Lddy$a;
-
addEffect
public Enchantment.Builder addEffect(ComponentType<List<AttributeEnchantmentEffect>> type, AttributeEnchantmentEffect effect) - Mappings:
Namespace Name Mixin selector named addEffect
Lnet/minecraft/enchantment/Enchantment$Builder;addEffect(Lnet/minecraft/component/ComponentType;Lnet/minecraft/enchantment/effect/AttributeEnchantmentEffect;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60065
Lnet/minecraft/class_1887$class_9700;method_60065(Lnet/minecraft/class_9331;Lnet/minecraft/class_9720;)Lnet/minecraft/class_1887$class_9700;
official a
Lddy$a;a(Lkt;Ldeo;)Lddy$a;
-
addNonListEffect
- Mappings:
Namespace Name Mixin selector named addNonListEffect
Lnet/minecraft/enchantment/Enchantment$Builder;addNonListEffect(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60070
Lnet/minecraft/class_1887$class_9700;method_60070(Lnet/minecraft/class_9331;Ljava/lang/Object;)Lnet/minecraft/class_1887$class_9700;
official b
Lddy$a;b(Lkt;Ljava/lang/Object;)Lddy$a;
-
addEffect
- Mappings:
Namespace Name Mixin selector named addEffect
Lnet/minecraft/enchantment/Enchantment$Builder;addEffect(Lnet/minecraft/component/ComponentType;)Lnet/minecraft/enchantment/Enchantment$Builder;
intermediary method_60062
Lnet/minecraft/class_1887$class_9700;method_60062(Lnet/minecraft/class_9331;)Lnet/minecraft/class_1887$class_9700;
official a
Lddy$a;a(Lkt;)Lddy$a;
-
getEffectsList
- Mappings:
Namespace Name Mixin selector named getEffectsList
Lnet/minecraft/enchantment/Enchantment$Builder;getEffectsList(Lnet/minecraft/component/ComponentType;)Ljava/util/List;
intermediary method_60069
Lnet/minecraft/class_1887$class_9700;method_60069(Lnet/minecraft/class_9331;)Ljava/util/List;
official b
Lddy$a;b(Lkt;)Ljava/util/List;
-
build
- Mappings:
Namespace Name Mixin selector named build
Lnet/minecraft/enchantment/Enchantment$Builder;build(Lnet/minecraft/util/Identifier;)Lnet/minecraft/enchantment/Enchantment;
intermediary method_60060
Lnet/minecraft/class_1887$class_9700;method_60060(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1887;
official a
Lddy$a;a(Lalz;)Lddy;
-