记录类 ClientboundPlayerInfoUpdatePacket.Entry
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket.Entry
public static record ClientboundPlayerInfoUpdatePacket.Entry(UUID profileId, @Nullable com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, @Nullable Component displayName, boolean showHat, int listOrder, @Nullable RemoteChatSession.Data chatSession)
extends Record
-
字段概要
字段修饰符和类型字段说明private final RemoteChatSession.Data
chatSession
记录组件的字段。private final Component
displayName
记录组件的字段。private final GameType
gameMode
记录组件的字段。private final int
latency
记录组件的字段。private final boolean
listed
记录组件的字段。private final int
listOrder
记录组件的字段。private final com.mojang.authlib.GameProfile
profile
记录组件的字段。private final UUID
profileId
记录组件的字段。private final boolean
showHat
记录组件的字段。 -
构造器概要
构造器构造器说明Entry
(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, Component displayName, boolean showHat, int listOrder, RemoteChatSession.Data chatSession) 创建Entry
记录类的实例。Entry
(ServerPlayer p_252094_) -
方法概要
修饰符和类型方法说明返回chatSession
记录组件的值。返回displayName
记录组件的值。final boolean
指示某个其他对象是否“等于”此对象。gameMode()
返回gameMode
记录组件的值。final int
hashCode()
返回此对象的哈希代码值。int
latency()
返回latency
记录组件的值。boolean
listed()
返回listed
记录组件的值。int
返回listOrder
记录组件的值。com.mojang.authlib.GameProfile
profile()
返回profile
记录组件的值。返回profileId
记录组件的值。boolean
showHat()
返回showHat
记录组件的值。final String
toString()
返回此记录类的字符串表示形式。
-
字段详细资料
-
profileId
profileId
记录组件的字段。 -
profile
@Nullable private final com.mojang.authlib.GameProfile profileprofile
记录组件的字段。 -
listed
private final boolean listedlisted
记录组件的字段。 -
latency
private final int latencylatency
记录组件的字段。 -
gameMode
gameMode
记录组件的字段。 -
displayName
displayName
记录组件的字段。 -
showHat
private final boolean showHatshowHat
记录组件的字段。 -
listOrder
private final int listOrderlistOrder
记录组件的字段。 -
chatSession
chatSession
记录组件的字段。
-
-
构造器详细资料
-
Entry
Entry(ServerPlayer p_252094_) -
Entry
public Entry(UUID profileId, @Nullable com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, @Nullable Component displayName, boolean showHat, int listOrder, @Nullable RemoteChatSession.Data chatSession) 创建Entry
记录类的实例。- 参数:
profileId
-profileId
记录组件的值profile
-profile
记录组件的值listed
-listed
记录组件的值latency
-latency
记录组件的值gameMode
-gameMode
记录组件的值displayName
-displayName
记录组件的值showHat
-showHat
记录组件的值listOrder
-listOrder
记录组件的值chatSession
-chatSession
记录组件的值
-
-
方法详细资料
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
profileId
返回profileId
记录组件的值。- 返回:
profileId
记录组件的值
-
profile
@Nullable public com.mojang.authlib.GameProfile profile()返回profile
记录组件的值。- 返回:
profile
记录组件的值
-
listed
public boolean listed()返回listed
记录组件的值。- 返回:
listed
记录组件的值
-
latency
public int latency()返回latency
记录组件的值。- 返回:
latency
记录组件的值
-
gameMode
返回gameMode
记录组件的值。- 返回:
gameMode
记录组件的值
-
displayName
返回displayName
记录组件的值。- 返回:
displayName
记录组件的值
-
showHat
public boolean showHat()返回showHat
记录组件的值。- 返回:
showHat
记录组件的值
-
listOrder
public int listOrder()返回listOrder
记录组件的值。- 返回:
listOrder
记录组件的值
-
chatSession
返回chatSession
记录组件的值。- 返回:
chatSession
记录组件的值
-