Package net.minecraft.text
Class HoverEvent.ItemStackContent
java.lang.Object
net.minecraft.text.HoverEvent.ItemStackContent
- Enclosing class:
HoverEvent
- Mappings:
Namespace Name official vl$c
intermediary net/minecraft/class_2568$class_5249
named net/minecraft/text/HoverEvent$ItemStackContent
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<HoverEvent.ItemStackContent>
private final int
private final Item
static final com.mojang.serialization.Codec<HoverEvent.ItemStackContent>
private final Optional<NbtCompound>
-
Constructor Summary
ConstructorDescriptionItemStackContent
(Item item, int count, Optional<NbtCompound> nbt) ItemStackContent
(Item item, int count, @Nullable NbtCompound nbt) ItemStackContent
(ItemStack stack) -
Method Summary
Modifier and TypeMethodDescriptionasStack()
boolean
int
hashCode()
private static com.mojang.serialization.DataResult<HoverEvent.ItemStackContent>
legacySerializer
(Text text)
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
-
hashCode
public int hashCode() -
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;
-