Package net.minecraft.text
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 om$cintermediary net/minecraft/class_2568$class_5249named net/minecraft/text/HoverEvent$ItemStackContent
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ItemStackContent(Item item, int count, CompoundTag tag)ItemStackContent(ItemStack stack) -
Method Summary
Modifier and Type Method Description ItemStackasStack()booleanequals(Object object)inthashCode()private static HoverEvent.ItemStackContentparse(JsonElement json)private static HoverEvent.ItemStackContentparse(Text text)private JsonElementtoJson()
-
Field Details
-
item
- Mappings:
Namespace Name Mixin selector official aLom$c;a:Lbnr;intermediary field_24355Lnet/minecraft/class_2568$class_5249;field_24355:Lnet/minecraft/class_1792;named itemLnet/minecraft/text/HoverEvent$ItemStackContent;item:Lnet/minecraft/item/Item;
-
count
private final int count- Mappings:
Namespace Name Mixin selector official bLom$c;b:Iintermediary field_24356Lnet/minecraft/class_2568$class_5249;field_24356:Inamed countLnet/minecraft/text/HoverEvent$ItemStackContent;count:I
-
tag
- Mappings:
Namespace Name Mixin selector official cLom$c;c:Lmq;intermediary field_24357Lnet/minecraft/class_2568$class_5249;field_24357:Lnet/minecraft/class_2487;named tagLnet/minecraft/text/HoverEvent$ItemStackContent;tag:Lnet/minecraft/nbt/CompoundTag;
-
stack
- Mappings:
Namespace Name Mixin selector official dLom$c;d:Lbnv;intermediary field_24358Lnet/minecraft/class_2568$class_5249;field_24358:Lnet/minecraft/class_1799;named stackLnet/minecraft/text/HoverEvent$ItemStackContent;stack:Lnet/minecraft/item/ItemStack;
-
-
Constructor Details
-
ItemStackContent
ItemStackContent(Item item, int count, @Nullable CompoundTag tag)- Mappings:
Namespace Name Mixin selector official <init>Lom$c;<init>(Lbnr;ILmq;)Vintermediary <init>Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_1792;ILnet/minecraft/class_2487;)Vnamed <init>Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/item/Item;ILnet/minecraft/nbt/CompoundTag;)V
-
ItemStackContent
- Mappings:
Namespace Name Mixin selector official <init>Lom$c;<init>(Lbnv;)Vintermediary <init>Lnet/minecraft/class_2568$class_5249;<init>(Lnet/minecraft/class_1799;)Vnamed <init>Lnet/minecraft/text/HoverEvent$ItemStackContent;<init>(Lnet/minecraft/item/ItemStack;)V
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
asStack
- Mappings:
Namespace Name Mixin selector official aLom$c;a()Lbnv;intermediary method_27683Lnet/minecraft/class_2568$class_5249;method_27683()Lnet/minecraft/class_1799;named asStackLnet/minecraft/text/HoverEvent$ItemStackContent;asStack()Lnet/minecraft/item/ItemStack;
-
parse
- Mappings:
Namespace Name Mixin selector official bLom$c;b(Lcom/google/gson/JsonElement;)Lom$c;intermediary method_27688Lnet/minecraft/class_2568$class_5249;method_27688(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2568$class_5249;named parseLnet/minecraft/text/HoverEvent$ItemStackContent;parse(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/HoverEvent$ItemStackContent;
-
parse
- Mappings:
Namespace Name Mixin selector official bLom$c;b(Loi;)Lom$c;intermediary method_27689Lnet/minecraft/class_2568$class_5249;method_27689(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2568$class_5249;named parseLnet/minecraft/text/HoverEvent$ItemStackContent;parse(Lnet/minecraft/text/Text;)Lnet/minecraft/text/HoverEvent$ItemStackContent;
-
toJson
- Mappings:
Namespace Name Mixin selector official bLom$c;b()Lcom/google/gson/JsonElement;intermediary method_27687Lnet/minecraft/class_2568$class_5249;method_27687()Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/text/HoverEvent$ItemStackContent;toJson()Lcom/google/gson/JsonElement;
-