Class Enchantment.Builder

java.lang.Object
net.minecraft.enchantment.Enchantment.Builder
Enclosing class:
Enchantment

public static class Enchantment.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/enchantment/Enchantment$Builder
intermediary net/minecraft/class_1887$class_9700
official daa$a
  • Field Details

    • definition

      private final Enchantment.Definition 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 Ldaa$a;a:Ldaa$c;
    • exclusiveSet

      private RegistryEntryList<Enchantment> 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 Ldaa$a;b:Ljq;
    • effectLists

      private final Map<ComponentType<?>,List<?>> 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 Ldaa$a;c:Ljava/util/Map;
    • effectMap

      private final ComponentMap.Builder 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 Ldaa$a;d:Lkm$a;
  • Constructor Details

    • Builder

      public Builder(Enchantment.Definition properties)
      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> Ldaa$a;<init>(Ldaa$c;)V
  • Method Details

    • exclusiveSet

      public Enchantment.Builder exclusiveSet(RegistryEntryList<Enchantment> 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 Ldaa$a;a(Ljq;)Ldaa$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 Ldaa$a;a(Lkp;Ljava/lang/Object;Leuw$a;)Ldaa$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 Ldaa$a;a(Lkp;Ljava/lang/Object;)Ldaa$a;
    • addEffect

      public <E> Enchantment.Builder addEffect(ComponentType<List<TargetedEnchantmentEffectType<E>>> effectType, 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 Ldaa$a;a(Lkp;Ldae;Ldae;Ljava/lang/Object;Leuw$a;)Ldaa$a;
    • addEffect

      public <E> Enchantment.Builder addEffect(ComponentType<List<TargetedEnchantmentEffectType<E>>> effectType, 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 Ldaa$a;a(Lkp;Ldae;Ldae;Ljava/lang/Object;)Ldaa$a;
    • addEffect

      Mappings:
      Namespace Name Mixin selector
      named addEffect Lnet/minecraft/enchantment/Enchantment$Builder;addEffect(Lnet/minecraft/component/ComponentType;Lnet/minecraft/enchantment/effect/AttributeEnchantmentEffectType;)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 Ldaa$a;a(Lkp;Ldap;)Ldaa$a;
    • addNonListEffect

      public <E> Enchantment.Builder addNonListEffect(ComponentType<E> effectType, E effect)
      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 Ldaa$a;b(Lkp;Ljava/lang/Object;)Ldaa$a;
    • addEffect

      public Enchantment.Builder addEffect(ComponentType<Unit> effectType)
      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 Ldaa$a;a(Lkp;)Ldaa$a;
    • getEffectsList

      private <E> List<E> getEffectsList(ComponentType<List<E>> effectType)
      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 Ldaa$a;b(Lkp;)Ljava/util/List;
    • build

      public Enchantment build(Identifier id)
      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 Ldaa$a;a(Lakq;)Ldaa;