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 dah$a
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Object2IntOpenHashMap
<RegistryEntry<Enchantment>> private final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Enchantment enchantment, int level) build()
int
getLevel
(Enchantment enchantment) void
remove
(Predicate<RegistryEntry<Enchantment>> predicate) void
set
(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
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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;
-