Record Class PlayerListS2CPacket.Entry

java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.PlayerListS2CPacket.Entry
Record Components:
profileId -
profile -
listed -
latency -
gameMode -
displayName -
chatSession -
Enclosing class:
PlayerListS2CPacket

public static record PlayerListS2CPacket.Entry(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable Text displayName, PublicPlayerSession.Serialized chatSession) extends Record
Mappings:
Namespace Name
official xl$b
intermediary net/minecraft/class_2703$class_2705
named net/minecraft/network/packet/s2c/play/PlayerListS2CPacket$Entry
official a
intermediary comp_1106
named profileId
official b
intermediary comp_1107
named profile
official c
intermediary comp_1108
named listed
official d
intermediary comp_1109
named latency
official e
intermediary comp_1110
named gameMode
official f
intermediary comp_1111
named displayName
official g
intermediary comp_1112
named chatSession
  • Field Details

    • profileId

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

      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 GameMode gameMode
      The field for the gameMode record component.
    • displayName

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

      @Nullable private final PublicPlayerSession.Serialized chatSession
      The field for the chatSession record component.
  • Constructor Details

    • Entry

      Entry(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxl$b;<init>(Laiq;)V
      intermediary <init> Lnet/minecraft/class_2703$class_2705;<init>(Lnet/minecraft/class_3222;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlayerListS2CPacket$Entry;<init>(Lnet/minecraft/server/network/ServerPlayerEntity;)V
    • Entry

      public Entry(UUID uUID, com.mojang.authlib.GameProfile gameProfile, boolean bool, int int2, GameMode gameMode, @Nullable @Nullable Text text, @Nullable PublicPlayerSession.Serialized serialized)
  • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • profileId

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

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

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

      Returns the value of the chatSession record component.
      Returns:
      the value of the chatSession record component