Record Class ClientboundPlayerInfoUpdatePacket.Entry

java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket.Entry
封闭类:
ClientboundPlayerInfoUpdatePacket

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
  • 字段详细资料

    • profileId

      private final UUID profileId
      profileId 记录组件的字段。
    • profile

      private final com.mojang.authlib.GameProfile profile
      profile 记录组件的字段。
    • listed

      private final boolean listed
      listed 记录组件的字段。
    • latency

      private final int latency
      latency 记录组件的字段。
    • gameMode

      private final GameType gameMode
      gameMode 记录组件的字段。
    • displayName

      @Nullable private final Component displayName
      displayName 记录组件的字段。
    • chatSession

      @Nullable private final RemoteChatSession.Data 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

      public final String toString()
      返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用 Objects::equals(Object,Object) 对参考组件进行比较;使用 '==' 对基元组件进行比较
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • profileId

      public UUID 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

      public GameType gameMode()
      返回 gameMode 记录组件的值。
      返回:
      gameMode 记录组件的值
    • displayName

      @Nullable public Component displayName()
      返回 displayName 记录组件的值。
      返回:
      displayName 记录组件的值
    • chatSession

      @Nullable public RemoteChatSession.Data chatSession()
      返回 chatSession 记录组件的值。
      返回:
      chatSession 记录组件的值