类 HoverEvent.ItemStackContent

  • 封闭类:
    HoverEvent

    public static class HoverEvent.ItemStackContent
    extends Object
    Mappings:
    Namespace Name
    official or$c
    intermediary net/minecraft/class_2568$class_5249
    named net/minecraft/text/HoverEvent$ItemStackContent
    • 字段详细资料

      • item

        private final Item item
        Mappings:
        Namespace Name Mixin selector
        official a Lor$c;a:Lbpn;
        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 b Lor$c;b:I
        intermediary field_24356 Lnet/minecraft/class_2568$class_5249;field_24356:I
        named count Lnet/minecraft/text/HoverEvent$ItemStackContent;count:I
      • nbt

        @Nullable
        private final @Nullable CompoundTag nbt
        Mappings:
        Namespace Name Mixin selector
        official c Lor$c;c:Lmv;
        intermediary field_24357 Lnet/minecraft/class_2568$class_5249;field_24357:Lnet/minecraft/class_2487;
        named nbt Lnet/minecraft/text/HoverEvent$ItemStackContent;nbt:Lnet/minecraft/nbt/CompoundTag;
      • stack

        @Nullable
        private @Nullable ItemStack stack
        Mappings:
        Namespace Name Mixin selector
        official d Lor$c;d:Lbpr;
        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;
    • 构造器详细资料

      • ItemStackContent

        ItemStackContent​(Item item,
                         int count,
                         @Nullable
                         @Nullable CompoundTag nbt)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lor$c;<init>(Lbpn;ILmv;)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/CompoundTag;)V
      • ItemStackContent

        public ItemStackContent​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lor$c;<init>(Lbpr;)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
    • 方法详细资料

      • equals

        public boolean equals​(Object object)
        覆盖:
        equals 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official equals Lor$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()
        覆盖:
        hashCode 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official hashCode Lor$c;hashCode()I
        intermediary hashCode Lnet/minecraft/class_2568$class_5249;hashCode()I
        named hashCode Lnet/minecraft/text/HoverEvent$ItemStackContent;hashCode()I
      • asStack

        public ItemStack asStack()
        Mappings:
        Namespace Name Mixin selector
        official a Lor$c;a()Lbpr;
        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;
      • parse

        private static HoverEvent.ItemStackContent parse​(JsonElement json)
        Mappings:
        Namespace Name Mixin selector
        official b Lor$c;b(Lcom/google/gson/JsonElement;)Lor$c;
        intermediary method_27688 Lnet/minecraft/class_2568$class_5249;method_27688(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2568$class_5249;
        named parse Lnet/minecraft/text/HoverEvent$ItemStackContent;parse(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/HoverEvent$ItemStackContent;
      • parse

        @Nullable
        private static @Nullable HoverEvent.ItemStackContent parse​(Text text)
        Mappings:
        Namespace Name Mixin selector
        official b Lor$c;b(Lon;)Lor$c;
        intermediary method_27689 Lnet/minecraft/class_2568$class_5249;method_27689(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2568$class_5249;
        named parse Lnet/minecraft/text/HoverEvent$ItemStackContent;parse(Lnet/minecraft/text/Text;)Lnet/minecraft/text/HoverEvent$ItemStackContent;
      • toJson

        private JsonElement toJson()
        Mappings:
        Namespace Name Mixin selector
        official b Lor$c;b()Lcom/google/gson/JsonElement;
        intermediary method_27687 Lnet/minecraft/class_2568$class_5249;method_27687()Lcom/google/gson/JsonElement;
        named toJson Lnet/minecraft/text/HoverEvent$ItemStackContent;toJson()Lcom/google/gson/JsonElement;