Package net.minecraft.component.type
Class ItemEnchantmentsComponent.Builder
java.lang.Object
net.minecraft.component.type.ItemEnchantmentsComponent.Builder
- Enclosing class:
ItemEnchantmentsComponent
- Mappings:
Namespace Name named net/minecraft/component/type/ItemEnchantmentsComponent$Builder
intermediary net/minecraft/class_9304$class_9305
official dag$a
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Object2IntOpenHashMap
<RegistryEntry<Enchantment>> private final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(RegistryEntry<Enchantment> enchantment, int level) build()
int
getLevel
(RegistryEntry<Enchantment> enchantment) void
remove
(Predicate<RegistryEntry<Enchantment>> predicate) void
set
(RegistryEntry<Enchantment> enchantment, int level)
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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;
-