Class ItemEnchantmentsComponent.Builder

java.lang.Object
net.minecraft.component.type.ItemEnchantmentsComponent.Builder
Enclosing class:
ItemEnchantmentsComponent

public static class ItemEnchantmentsComponent.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/component/type/ItemEnchantmentsComponent$Builder
intermediary net/minecraft/class_9304$class_9305
official dag$a
  • Field Details

    • enchantments

      private final Object2IntOpenHashMap<RegistryEntry<Enchantment>> enchantments
      Mappings:
      Namespace Name Mixin selector
      named enchantments Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;enchantments:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
      intermediary field_49391 Lnet/minecraft/class_9304$class_9305;field_49391:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
      official a Ldag$a;a:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
    • showInTooltip

      private final boolean showInTooltip
      Mappings:
      Namespace Name Mixin selector
      named showInTooltip Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;showInTooltip:Z
      intermediary field_49392 Lnet/minecraft/class_9304$class_9305;field_49392:Z
      official b Ldag$a;b:Z
  • Constructor Details

    • Builder

      public Builder(ItemEnchantmentsComponent enchantmentsComponent)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;<init>(Lnet/minecraft/component/type/ItemEnchantmentsComponent;)V
      intermediary <init> Lnet/minecraft/class_9304$class_9305;<init>(Lnet/minecraft/class_9304;)V
      official <init> Ldag$a;<init>(Ldag;)V
  • Method Details

    • set

      public void set(RegistryEntry<Enchantment> enchantment, int level)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;set(Lnet/minecraft/registry/entry/RegistryEntry;I)V
      intermediary method_57547 Lnet/minecraft/class_9304$class_9305;method_57547(Lnet/minecraft/class_6880;I)V
      official a Ldag$a;a(Ljm;I)V
    • add

      public void add(RegistryEntry<Enchantment> enchantment, int level)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;add(Lnet/minecraft/registry/entry/RegistryEntry;I)V
      intermediary method_57550 Lnet/minecraft/class_9304$class_9305;method_57550(Lnet/minecraft/class_6880;I)V
      official b Ldag$a;b(Ljm;I)V
    • remove

      public void remove(Predicate<RegistryEntry<Enchantment>> predicate)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;remove(Ljava/util/function/Predicate;)V
      intermediary method_57548 Lnet/minecraft/class_9304$class_9305;method_57548(Ljava/util/function/Predicate;)V
      official a Ldag$a;a(Ljava/util/function/Predicate;)V
    • getLevel

      public int getLevel(RegistryEntry<Enchantment> enchantment)
      Mappings:
      Namespace Name Mixin selector
      named getLevel Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;getLevel(Lnet/minecraft/registry/entry/RegistryEntry;)I
      intermediary method_57546 Lnet/minecraft/class_9304$class_9305;method_57546(Lnet/minecraft/class_6880;)I
      official a Ldag$a;a(Ljm;)I
    • getEnchantments

      public Set<RegistryEntry<Enchantment>> getEnchantments()
      Mappings:
      Namespace Name Mixin selector
      named getEnchantments Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;getEnchantments()Ljava/util/Set;
      intermediary method_57545 Lnet/minecraft/class_9304$class_9305;method_57545()Ljava/util/Set;
      official a Ldag$a;a()Ljava/util/Set;
    • build

      public ItemEnchantmentsComponent build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;build()Lnet/minecraft/component/type/ItemEnchantmentsComponent;
      intermediary method_57549 Lnet/minecraft/class_9304$class_9305;method_57549()Lnet/minecraft/class_9304;
      official b Ldag$a;b()Ldag;