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 czm$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 Lczm$a;a:Lczm$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 Lczm$a;b:Ljn;
    • 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 Lczm$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 Lczm$a;d:Lkj$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> Lczm$a;<init>(Lczm$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 Lczm$a;a(Ljn;)Lczm$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 Lczm$a;a(Lkm;Ljava/lang/Object;Leuh$a;)Lczm$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 Lczm$a;a(Lkm;Ljava/lang/Object;)Lczm$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 Lczm$a;a(Lkm;Lczq;Lczq;Ljava/lang/Object;Leuh$a;)Lczm$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 Lczm$a;a(Lkm;Lczq;Lczq;Ljava/lang/Object;)Lczm$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 Lczm$a;a(Lkm;Ldab;)Lczm$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 Lczm$a;b(Lkm;Ljava/lang/Object;)Lczm$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 Lczm$a;a(Lkm;)Lczm$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 Lczm$a;b(Lkm;)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 Lczm$a;a(Lakk;)Lczm;