Package net.minecraft.text
Class HoverEvent.ItemStackContent
java.lang.Object
net.minecraft.text.HoverEvent.ItemStackContent
- Enclosing class:
HoverEvent
- Mappings:
Namespace Name named net/minecraft/text/HoverEvent$ItemStackContentintermediary net/minecraft/class_2568$class_5249official xv$c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentChangesstatic final com.mojang.serialization.Codec<HoverEvent.ItemStackContent> private final intprivate static final com.mojang.serialization.Codec<HoverEvent.ItemStackContent> private final RegistryEntry<Item> static final com.mojang.serialization.Codec<HoverEvent.ItemStackContent> -
Constructor Summary
ConstructorsConstructorDescriptionItemStackContent(ItemStack stack) ItemStackContent(RegistryEntry<Item> item, int count, ComponentChanges changes) -
Method Summary
Modifier and TypeMethodDescriptionasStack()booleaninthashCode()private static com.mojang.serialization.DataResult<HoverEvent.ItemStackContent> legacySerializer(Text text, @Nullable RegistryOps<?> ops)
-
Field Details
-
ITEM_STACK_CODEC
- Mappings:
Namespace Name Mixin selector named ITEM_STACK_CODECLnet/minecraft/text/HoverEvent$ItemStackContent;ITEM_STACK_CODEC:Lcom/mojang/serialization/Codec;intermediary field_46608Lnet/minecraft/class_2568$class_5249;field_46608:Lcom/mojang/serialization/Codec;official aLxv$c;a:Lcom/mojang/serialization/Codec;
-
ENTRY_BASED_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_BASED_CODECLnet/minecraft/text/HoverEvent$ItemStackContent;ENTRY_BASED_CODEC:Lcom/mojang/serialization/Codec;intermediary field_49672Lnet/minecraft/class_2568$class_5249;field_49672:Lcom/mojang/serialization/Codec;official cLxv$c;c:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/HoverEvent$ItemStackContent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_46609Lnet/minecraft/class_2568$class_5249;field_46609:Lcom/mojang/serialization/Codec;official bLxv$c;b:Lcom/mojang/serialization/Codec;
-
item
- Mappings:
Namespace Name Mixin selector named itemLnet/minecraft/text/HoverEvent$ItemStackContent;item:Lnet/minecraft/registry/entry/RegistryEntry;intermediary field_24355Lnet/minecraft/class_2568$class_5249;field_24355:Lnet/minecraft/class_6880;official dLxv$c;d:Lji;
-
count
private final int count- Mappings:
Namespace Name Mixin selector named countLnet/minecraft/text/HoverEvent$ItemStackContent;count:Iintermediary field_24356Lnet/minecraft/class_2568$class_5249;field_24356:Iofficial eLxv$c;e:I
-
changes
- Mappings:
Namespace Name Mixin selector named changesLnet/minecraft/text/HoverEvent$ItemStackContent;changes:Lnet/minecraft/component/ComponentChanges;intermediary field_49673Lnet/minecraft/class_2568$class_5249;field_49673:Lnet/minecraft/class_9326;official fLxv$c;f:Lkj;
-
stack
- Mappings:
Namespace Name Mixin selector named stackLnet/minecraft/text/HoverEvent$ItemStackContent;stack:Lnet/minecraft/item/ItemStack;intermediary field_24358Lnet/minecraft/class_2568$class_5249;field_24358:Lnet/minecraft/class_1799;official gLxv$c;g:Lcur;
-
-
Constructor Details
-
ItemStackContent
ItemStackContent(RegistryEntry<Item> item, int count, ComponentChanges changes) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/registry/entry/RegistryEntry;ILnet/minecraft/component/ComponentChanges;)Vintermediary <init>Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_6880;ILnet/minecraft/class_9326;)Vofficial <init>Lxv$c;<init>(Lji;ILkj;)V
-
ItemStackContent
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/item/ItemStack;)Vintermediary <init>Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_1799;)Vofficial <init>Lxv$c;<init>(Lcur;)V
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
asStack
- Mappings:
Namespace Name Mixin selector named asStackLnet/minecraft/text/HoverEvent$ItemStackContent;asStack()Lnet/minecraft/item/ItemStack;intermediary method_27683Lnet/minecraft/class_2568$class_5249;method_27683()Lnet/minecraft/class_1799;official aLxv$c;a()Lcur;
-
legacySerializer
private static com.mojang.serialization.DataResult<HoverEvent.ItemStackContent> legacySerializer(Text text, @Nullable @Nullable RegistryOps<?> ops) - Mappings:
Namespace Name Mixin selector named legacySerializerLnet/minecraft/text/HoverEvent$ItemStackContent;legacySerializer(Lnet/minecraft/text/Text;Lnet/minecraft/registry/RegistryOps;)Lcom/mojang/serialization/DataResult;intermediary method_54203Lnet/minecraft/class_2568$class_5249;method_54203(Lnet/minecraft/class_2561;Lnet/minecraft/class_6903;)Lcom/mojang/serialization/DataResult;official aLxv$c;a(Lxp;Lald;)Lcom/mojang/serialization/DataResult;
-