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 xe$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 Lxe$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 Lxe$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 Lxe$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 Lxe$c;d:Ljm;
    • 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 Lxe$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 Lxe$c;f:Lkn;
    • 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 Lxe$c;g:Lcuo;
  • 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> Lxe$c;<init>(Ljm;ILkn;)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> Lxe$c;<init>(Lcuo;)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 Lxe$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 Lxe$c;a()Lcuo;
    • 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 Lxe$c;a(Lwy;Lako;)Lcom/mojang/serialization/DataResult;