Package net.minecraft.network.chat
Class HoverEvent.ItemStackInfo
java.lang.Object
net.minecraft.network.chat.HoverEvent.ItemStackInfo
- Enclosing class:
HoverEvent
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<HoverEvent.ItemStackInfo>
private final int
static final com.mojang.serialization.Codec<HoverEvent.ItemStackInfo>
private final Item
private ItemStack
private final Optional<CompoundTag>
-
Constructor Summary
ConstructorDescriptionItemStackInfo
(Item p_304523_, int p_304412_, Optional<CompoundTag> p_304459_) ItemStackInfo
(Item p_130893_, int p_130894_, CompoundTag p_130895_) ItemStackInfo
(ItemStack p_130897_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
private static com.mojang.serialization.DataResult<HoverEvent.ItemStackInfo>
legacyCreate
(Component p_304732_)
-
Field Details
-
FULL_CODEC
-
CODEC
-
item
-
count
private final int count -
tag
-
itemStack
-
-
Constructor Details
-
ItemStackInfo
ItemStackInfo(Item p_130893_, int p_130894_, @Nullable CompoundTag p_130895_) -
ItemStackInfo
ItemStackInfo(Item p_304523_, int p_304412_, Optional<CompoundTag> p_304459_) -
ItemStackInfo
-
-
Method Details