Class HoverEvent.ItemStackContent

java.lang.Object
net.minecraft.text.HoverEvent.ItemStackContent
Enclosing class:
HoverEvent

public static class HoverEvent.ItemStackContent extends Object
Mappings:
Namespace Name
named net/minecraft/text/HoverEvent$ItemStackContent
intermediary net/minecraft/class_2568$class_5249
official yb$c
  • Field Details

    • ITEM_STACK_CODEC

      public static final com.mojang.serialization.Codec<HoverEvent.ItemStackContent> ITEM_STACK_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ITEM_STACK_CODEC Lnet/minecraft/text/HoverEvent$ItemStackContent;ITEM_STACK_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46608 Lnet/minecraft/class_2568$class_5249;field_46608:Lcom/mojang/serialization/Codec;
      official a Lyb$c;a:Lcom/mojang/serialization/Codec;
    • ENTRY_BASED_CODEC

      private static final com.mojang.serialization.Codec<HoverEvent.ItemStackContent> ENTRY_BASED_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_BASED_CODEC Lnet/minecraft/text/HoverEvent$ItemStackContent;ENTRY_BASED_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49672 Lnet/minecraft/class_2568$class_5249;field_49672:Lcom/mojang/serialization/Codec;
      official c Lyb$c;c:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<HoverEvent.ItemStackContent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/HoverEvent$ItemStackContent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46609 Lnet/minecraft/class_2568$class_5249;field_46609:Lcom/mojang/serialization/Codec;
      official b Lyb$c;b:Lcom/mojang/serialization/Codec;
    • item

      private final RegistryEntry<Item> item
      Mappings:
      Namespace Name Mixin selector
      named item Lnet/minecraft/text/HoverEvent$ItemStackContent;item:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_24355 Lnet/minecraft/class_2568$class_5249;field_24355:Lnet/minecraft/class_6880;
      official d Lyb$c;d:Ljq;
    • count

      private final int count
      Mappings:
      Namespace Name Mixin selector
      named count Lnet/minecraft/text/HoverEvent$ItemStackContent;count:I
      intermediary field_24356 Lnet/minecraft/class_2568$class_5249;field_24356:I
      official e Lyb$c;e:I
    • changes

      private final ComponentChanges changes
      Mappings:
      Namespace Name Mixin selector
      named changes Lnet/minecraft/text/HoverEvent$ItemStackContent;changes:Lnet/minecraft/component/ComponentChanges;
      intermediary field_49673 Lnet/minecraft/class_2568$class_5249;field_49673:Lnet/minecraft/class_9326;
      official f Lyb$c;f:Lkr;
    • stack

      @Nullable private @Nullable ItemStack stack
      Mappings:
      Namespace Name Mixin selector
      named stack Lnet/minecraft/text/HoverEvent$ItemStackContent;stack:Lnet/minecraft/item/ItemStack;
      intermediary field_24358 Lnet/minecraft/class_2568$class_5249;field_24358:Lnet/minecraft/class_1799;
      official g Lyb$c;g:Lcxo;
  • 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;)V
      intermediary <init> Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_6880;ILnet/minecraft/class_9326;)V
      official <init> Lyb$c;<init>(Ljq;ILkr;)V
    • ItemStackContent

      public ItemStackContent(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/item/ItemStack;)V
      intermediary <init> Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_1799;)V
      official <init> Lyb$c;<init>(Lcxo;)V
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/text/HoverEvent$ItemStackContent;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2568$class_5249;equals(Ljava/lang/Object;)Z
      official equals Lyb$c;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • asStack

      public ItemStack asStack()
      Mappings:
      Namespace Name Mixin selector
      named asStack Lnet/minecraft/text/HoverEvent$ItemStackContent;asStack()Lnet/minecraft/item/ItemStack;
      intermediary method_27683 Lnet/minecraft/class_2568$class_5249;method_27683()Lnet/minecraft/class_1799;
      official a Lyb$c;a()Lcxo;
    • legacySerializer

      private static com.mojang.serialization.DataResult<HoverEvent.ItemStackContent> legacySerializer(Text text, @Nullable @Nullable RegistryOps<?> ops)
      Mappings:
      Namespace Name Mixin selector
      named legacySerializer Lnet/minecraft/text/HoverEvent$ItemStackContent;legacySerializer(Lnet/minecraft/text/Text;Lnet/minecraft/registry/RegistryOps;)Lcom/mojang/serialization/DataResult;
      intermediary method_54203 Lnet/minecraft/class_2568$class_5249;method_54203(Lnet/minecraft/class_2561;Lnet/minecraft/class_6903;)Lcom/mojang/serialization/DataResult;
      official a Lyb$c;a(Lxv;Lalx;)Lcom/mojang/serialization/DataResult;