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 DataComponentPatch
private final int
static final com.mojang.serialization.Codec
<HoverEvent.ItemStackInfo> private ItemStack
private static final com.mojang.serialization.Codec
<HoverEvent.ItemStackInfo> -
Constructor Summary
ConstructorDescriptionItemStackInfo
(Holder<Item> p_328208_, int p_311558_, DataComponentPatch p_327933_) ItemStackInfo
(ItemStack p_130897_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
private static com.mojang.serialization.DataResult
<HoverEvent.ItemStackInfo> legacyCreate
(Component p_309792_, RegistryOps<?> p_329820_)
-
Field Details
-
FULL_CODEC
-
SIMPLE_CODEC
-
CODEC
-
item
-
count
private final int count -
components
-
itemStack
-
-
Constructor Details
-
ItemStackInfo
ItemStackInfo(Holder<Item> p_328208_, int p_311558_, DataComponentPatch p_327933_) -
ItemStackInfo
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getItemStack
-
legacyCreate
private static com.mojang.serialization.DataResult<HoverEvent.ItemStackInfo> legacyCreate(Component p_309792_, @Nullable RegistryOps<?> p_329820_)
-