Record Class PlayerInfoUpdatePacket.Entry

java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.PlayerInfoUpdatePacket.Entry
Enclosing class:
PlayerInfoUpdatePacket

public static record PlayerInfoUpdatePacket.Entry(UUID uuid, String username, List<PlayerInfoUpdatePacket.Property> properties, boolean listed, int latency, GameMode gameMode, @Nullable Component displayName, @Nullable ChatSession chatSession) extends Record
  • Constructor Details

    • Entry

      public Entry(UUID uuid, String username, List<PlayerInfoUpdatePacket.Property> properties, boolean listed, int latency, GameMode gameMode, @Nullable @Nullable Component displayName, @Nullable @Nullable ChatSession chatSession)
      Creates an instance of a Entry record class.
      Parameters:
      uuid - the value for the uuid record component
      username - the value for the username record component
      properties - the value for the properties 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.
    • uuid

      public UUID uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • properties

      public List<PlayerInfoUpdatePacket.Property> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties 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 GameMode gameMode()
      Returns the value of the gameMode record component.
      Returns:
      the value of the gameMode record component
    • displayName

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

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