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 dac$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 Ldac$a;a:Ldac$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 Ldac$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 Ldac$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 Ldac$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> Ldac$a;<init>(Ldac$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 Ldac$a;a(Ljq;)Ldac$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 Ldac$a;a(Lkp;Ljava/lang/Object;Levc$a;)Ldac$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 Ldac$a;a(Lkp;Ljava/lang/Object;)Ldac$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 Ldac$a;a(Lkp;Ldag;Ldag;Ljava/lang/Object;Levc$a;)Ldac$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 Ldac$a;a(Lkp;Ldag;Ldag;Ljava/lang/Object;)Ldac$a;
    • addEffect

      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 Ldac$a;a(Lkp;Ldar;)Ldac$a;
    • addNonListEffect

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

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

      private <E> List<E> getEffectsList(ComponentType<List<E>> type)
      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 Ldac$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 Ldac$a;a(Lakr;)Ldac;