类 HoverEvent.ItemStackInfo
java.lang.Object
net.minecraft.network.chat.HoverEvent.ItemStackInfo
- 封闭类:
HoverEvent
-
字段概要
字段修饰符和类型字段说明static 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> -
构造器概要
构造器构造器说明ItemStackInfo
(Holder<Item> p_328208_, int p_311558_, DataComponentPatch p_327933_) ItemStackInfo
(ItemStack p_130897_) -
方法概要
修饰符和类型方法说明boolean
int
hashCode()
private static com.mojang.serialization.DataResult
<HoverEvent.ItemStackInfo> legacyCreate
(Component p_309792_, RegistryOps<?> p_329820_)
-
字段详细资料
-
FULL_CODEC
-
SIMPLE_CODEC
-
CODEC
-
item
-
count
private final int count -
components
-
itemStack
-
-
构造器详细资料
-
ItemStackInfo
ItemStackInfo(Holder<Item> p_328208_, int p_311558_, DataComponentPatch p_327933_) -
ItemStackInfo
-
-
方法详细资料
-
equals
-
hashCode
public int hashCode() -
getItemStack
-
legacyCreate
private static com.mojang.serialization.DataResult<HoverEvent.ItemStackInfo> legacyCreate(Component p_309792_, @Nullable RegistryOps<?> p_329820_)
-