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

  • Constructor Details

    • Entry

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

      public Entry(UUID uUID, @Nullable @Nullable 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

      @Nullable public @Nullable 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