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 dah$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 Ldah$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 Ldah$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> Ldah$a;<init>(Ldah;)V
  • Method Details

    • set

      public void set(Enchantment enchantment, int level)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;set(Lnet/minecraft/enchantment/Enchantment;I)V
      intermediary method_57547 Lnet/minecraft/class_9304$class_9305;method_57547(Lnet/minecraft/class_1887;I)V
      official a Ldah$a;a(Ldac;I)V
    • add

      public void add(Enchantment enchantment, int level)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;add(Lnet/minecraft/enchantment/Enchantment;I)V
      intermediary method_57550 Lnet/minecraft/class_9304$class_9305;method_57550(Lnet/minecraft/class_1887;I)V
      official b Ldah$a;b(Ldac;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 Ldah$a;a(Ljava/util/function/Predicate;)V
    • getLevel

      public int getLevel(Enchantment enchantment)
      Mappings:
      Namespace Name Mixin selector
      named getLevel Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;getLevel(Lnet/minecraft/enchantment/Enchantment;)I
      intermediary method_57546 Lnet/minecraft/class_9304$class_9305;method_57546(Lnet/minecraft/class_1887;)I
      official a Ldah$a;a(Ldac;)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 Ldah$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 Ldah$a;b()Ldah;