Class HoverEvent.ItemStackContent

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

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

    • ITEM_STACK_CODEC

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

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

      private final Item item
      Mappings:
      Namespace Name Mixin selector
      official c Lvl$c;c:Lcmt;
      intermediary field_24355 Lnet/minecraft/class_2568$class_5249;field_24355:Lnet/minecraft/class_1792;
      named item Lnet/minecraft/text/HoverEvent$ItemStackContent;item:Lnet/minecraft/item/Item;
    • count

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

      private final Optional<NbtCompound> nbt
      Mappings:
      Namespace Name Mixin selector
      official e Lvl$c;e:Ljava/util/Optional;
      intermediary field_24357 Lnet/minecraft/class_2568$class_5249;field_24357:Ljava/util/Optional;
      named nbt Lnet/minecraft/text/HoverEvent$ItemStackContent;nbt:Ljava/util/Optional;
    • stack

      @Nullable private @Nullable ItemStack stack
      Mappings:
      Namespace Name Mixin selector
      official f Lvl$c;f:Lcmy;
      intermediary field_24358 Lnet/minecraft/class_2568$class_5249;field_24358:Lnet/minecraft/class_1799;
      named stack Lnet/minecraft/text/HoverEvent$ItemStackContent;stack:Lnet/minecraft/item/ItemStack;
  • Constructor Details

    • ItemStackContent

      ItemStackContent(Item item, int count, @Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvl$c;<init>(Lcmt;ILsn;)V
      intermediary <init> Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_1792;ILnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/item/Item;ILnet/minecraft/nbt/NbtCompound;)V
    • ItemStackContent

      ItemStackContent(Item item, int count, Optional<NbtCompound> nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvl$c;<init>(Lcmt;ILjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_1792;ILjava/util/Optional;)V
      named <init> Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/item/Item;ILjava/util/Optional;)V
    • ItemStackContent

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

    • equals

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

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

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

      private static com.mojang.serialization.DataResult<HoverEvent.ItemStackContent> legacySerializer(Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lvl$c;a(Lvf;)Lcom/mojang/serialization/DataResult;
      intermediary method_54203 Lnet/minecraft/class_2568$class_5249;method_54203(Lnet/minecraft/class_2561;)Lcom/mojang/serialization/DataResult;
      named legacySerializer Lnet/minecraft/text/HoverEvent$ItemStackContent;legacySerializer(Lnet/minecraft/text/Text;)Lcom/mojang/serialization/DataResult;