记录类 ClientboundPlayerInfoUpdatePacket.Entry

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

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
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    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 记录组件的值。
    final int
    返回此对象的哈希代码值。
    int
    返回 latency 记录组件的值。
    boolean
    返回 listed 记录组件的值。
    int
    返回 listOrder 记录组件的值。
    com.mojang.authlib.GameProfile
    返回 profile 记录组件的值。
    返回 profileId 记录组件的值。
    boolean
    返回 showHat 记录组件的值。
    final String
    返回此记录类的字符串表示形式。

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • profileId

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

      @Nullable 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 记录组件的字段。
    • showHat

      private final boolean showHat
      showHat 记录组件的字段。
    • listOrder

      private final int listOrder
      listOrder 记录组件的字段。
    • chatSession

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

      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

      @Nullable 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 记录组件的值
    • showHat

      public boolean showHat()
      返回 showHat 记录组件的值。
      返回:
      showHat 记录组件的值
    • listOrder

      public int listOrder()
      返回 listOrder 记录组件的值。
      返回:
      listOrder 记录组件的值
    • chatSession

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