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