Package net.minecraft.component.type
Class ItemEnchantmentsComponent
java.lang.Object
net.minecraft.component.type.ItemEnchantmentsComponent
- All Implemented Interfaces:
 TooltipAppender
- Mappings:
 Namespace Name named net/minecraft/component/type/ItemEnchantmentsComponentintermediary net/minecraft/class_9304official djo
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ItemEnchantmentsComponent> static final ItemEnchantmentsComponentprivate static final com.mojang.serialization.Codec<Integer> (package private) final Object2IntOpenHashMap<RegistryEntry<Enchantment>> static final PacketCodec<RegistryByteBuf, ItemEnchantmentsComponent>  - 
Constructor Summary
ConstructorsConstructorDescriptionItemEnchantmentsComponent(Object2IntOpenHashMap<RegistryEntry<Enchantment>> enchantments)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) booleanintgetLevel(RegistryEntry<Enchantment> enchantment) intgetSize()private static <T> RegistryEntryList<T> getTooltipOrderList(RegistryWrapper.WrapperLookup registries, RegistryKey<Registry<T>> registryRef, TagKey<T> tooltipOrderTag) inthashCode()booleanisEmpty()toString() 
- 
Field Details
- 
DEFAULT
- Mappings:
 Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/ItemEnchantmentsComponent;DEFAULT:Lnet/minecraft/component/type/ItemEnchantmentsComponent;intermediary field_49385Lnet/minecraft/class_9304;field_49385:Lnet/minecraft/class_9304;official aLdjo;a:Ldjo;
 - 
ENCHANTMENT_LEVEL_CODEC
- Mappings:
 Namespace Name Mixin selector named ENCHANTMENT_LEVEL_CODECLnet/minecraft/component/type/ItemEnchantmentsComponent;ENCHANTMENT_LEVEL_CODEC:Lcom/mojang/serialization/Codec;intermediary field_49388Lnet/minecraft/class_9304;field_49388:Lcom/mojang/serialization/Codec;official dLdjo;d:Lcom/mojang/serialization/Codec;
 - 
CODEC
- Mappings:
 Namespace Name Mixin selector named CODECLnet/minecraft/component/type/ItemEnchantmentsComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49386Lnet/minecraft/class_9304;field_49386:Lcom/mojang/serialization/Codec;official bLdjo;b:Lcom/mojang/serialization/Codec;
 - 
PACKET_CODEC
- Mappings:
 Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/ItemEnchantmentsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49387Lnet/minecraft/class_9304;field_49387:Lnet/minecraft/class_9139;official cLdjo;c:Lzm;
 - 
enchantments
- Mappings:
 Namespace Name Mixin selector named enchantmentsLnet/minecraft/component/type/ItemEnchantmentsComponent;enchantments:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;intermediary field_49389Lnet/minecraft/class_9304;field_49389:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;official eLdjo;e:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
 
 - 
 - 
Constructor Details
- 
ItemEnchantmentsComponent
ItemEnchantmentsComponent(Object2IntOpenHashMap<RegistryEntry<Enchantment>> enchantments) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/ItemEnchantmentsComponent;<init>(Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;)Vintermediary <init>Lnet/minecraft/class_9304;<init>(Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;)Vofficial <init>Ldjo;<init>(Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;)V
 
 - 
 - 
Method Details
- 
getLevel
- Mappings:
 Namespace Name Mixin selector named getLevelLnet/minecraft/component/type/ItemEnchantmentsComponent;getLevel(Lnet/minecraft/registry/entry/RegistryEntry;)Iintermediary method_57536Lnet/minecraft/class_9304;method_57536(Lnet/minecraft/class_6880;)Iofficial aLdjo;a(Ljl;)I
 - 
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) - Specified by:
 appendTooltipin interfaceTooltipAppender- Mappings:
 Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_9473;)Vofficial aLdga;a(Ldcr$b;Ljava/util/function/Consumer;Ldek;Lkl;)V
 - 
getTooltipOrderList
private static <T> RegistryEntryList<T> getTooltipOrderList(@Nullable RegistryWrapper.WrapperLookup registries, RegistryKey<Registry<T>> registryRef, TagKey<T> tooltipOrderTag) - Mappings:
 Namespace Name Mixin selector named getTooltipOrderListLnet/minecraft/component/type/ItemEnchantmentsComponent;getTooltipOrderList(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList;intermediary method_59716Lnet/minecraft/class_9304;method_59716(Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_5321;Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885;official aLdjo;a(Ljn$a;Lamd;Lbae;)Ljp;
 - 
getEnchantments
- Mappings:
 Namespace Name Mixin selector named getEnchantmentsLnet/minecraft/component/type/ItemEnchantmentsComponent;getEnchantments()Ljava/util/Set;intermediary method_57534Lnet/minecraft/class_9304;method_57534()Ljava/util/Set;official aLdjo;a()Ljava/util/Set;
 - 
getEnchantmentEntries
- Mappings:
 Namespace Name Mixin selector named getEnchantmentEntriesLnet/minecraft/component/type/ItemEnchantmentsComponent;getEnchantmentEntries()Ljava/util/Set;intermediary method_57539Lnet/minecraft/class_9304;method_57539()Ljava/util/Set;official bLdjo;b()Ljava/util/Set;
 - 
getSize
public int getSize()- Mappings:
 Namespace Name Mixin selector named getSizeLnet/minecraft/component/type/ItemEnchantmentsComponent;getSize()Iintermediary method_57541Lnet/minecraft/class_9304;method_57541()Iofficial cLdjo;c()I
 - 
isEmpty
public boolean isEmpty()- Mappings:
 Namespace Name Mixin selector named isEmptyLnet/minecraft/component/type/ItemEnchantmentsComponent;isEmpty()Zintermediary method_57543Lnet/minecraft/class_9304;method_57543()Zofficial dLdjo;d()Z
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -