Record Class ClientboundPlayerInfoUpdatePacket.Entry

java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket.Entry
Enclosing class:
ClientboundPlayerInfoUpdatePacket

public static record ClientboundPlayerInfoUpdatePacket.Entry(UUID profileId, @Nullable com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, @Nullable Component displayName, @Nullable RemoteChatSession.Data chatSession) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The field for the chatSession record component.
    private final Component
    The field for the displayName record component.
    private final GameType
    The field for the gameMode record component.
    private final int
    The field for the latency record component.
    private final boolean
    The field for the listed record component.
    private final com.mojang.authlib.GameProfile
    The field for the profile record component.
    private final UUID
    The field for the profileId record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, Component displayName, RemoteChatSession.Data chatSession)
    Creates an instance of a Entry record class.
    Entry(ServerPlayer p_252094_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the chatSession record component.
    Returns the value of the displayName record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the gameMode record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the latency record component.
    boolean
    Returns the value of the listed record component.
    com.mojang.authlib.GameProfile
    Returns the value of the profile record component.
    Returns the value of the profileId record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • profileId

      private final UUID profileId
      The field for the profileId record component.
    • profile

      @Nullable private final com.mojang.authlib.GameProfile profile
      The field for the profile record component.
    • listed

      private final boolean listed
      The field for the listed record component.
    • latency

      private final int latency
      The field for the latency record component.
    • gameMode

      private final GameType gameMode
      The field for the gameMode record component.
    • displayName

      @Nullable private final Component displayName
      The field for the displayName record component.
    • chatSession

      @Nullable private final RemoteChatSession.Data chatSession
      The field for the chatSession record component.
  • Constructor Details

    • 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, @Nullable RemoteChatSession.Data chatSession)
      Creates an instance of a Entry record class.
      Parameters:
      profileId - the value for the profileId record component
      profile - the value for the profile record component
      listed - the value for the listed record component
      latency - the value for the latency record component
      gameMode - the value for the gameMode record component
      displayName - the value for the displayName record component
      chatSession - the value for the chatSession record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • profileId

      public UUID profileId()
      Returns the value of the profileId record component.
      Returns:
      the value of the profileId record component
    • profile

      @Nullable public com.mojang.authlib.GameProfile profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • listed

      public boolean listed()
      Returns the value of the listed record component.
      Returns:
      the value of the listed record component
    • latency

      public int latency()
      Returns the value of the latency record component.
      Returns:
      the value of the latency record component
    • gameMode

      public GameType gameMode()
      Returns the value of the gameMode record component.
      Returns:
      the value of the gameMode record component
    • displayName

      @Nullable public Component displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • chatSession

      @Nullable public RemoteChatSession.Data chatSession()
      Returns the value of the chatSession record component.
      Returns:
      the value of the chatSession record component