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 official za$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 Summary
Modifier and TypeFieldDescriptionprivate final PublicPlayerSession.Serialized
The field for thechatSession
record component.The field for thedisplayName
record component.private final GameMode
The field for thegameMode
record component.private final int
The field for thelatency
record component.private final boolean
The field for thelisted
record component.private final @Nullable com.mojang.authlib.GameProfile
The field for theprofile
record component.private final UUID
The field for theprofileId
record component. -
Constructor Summary
ConstructorDescriptionEntry
(UUID uUID, @Nullable com.mojang.authlib.GameProfile gameProfile, boolean bool, int int2, GameMode gameMode, @Nullable Text text, PublicPlayerSession.Serialized serialized) Entry
(ServerPlayerEntity player) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatSession
record component.Returns the value of thedisplayName
record component.final boolean
Indicates whether some other object is "equal to" this one.gameMode()
Returns the value of thegameMode
record component.final int
hashCode()
Returns a hash code value for this object.int
latency()
Returns the value of thelatency
record component.boolean
listed()
Returns the value of thelisted
record component.@Nullable com.mojang.authlib.GameProfile
profile()
Returns the value of theprofile
record component.Returns the value of theprofileId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
profileId
The field for theprofileId
record component. -
profile
The field for theprofile
record component. -
listed
private final boolean listedThe field for thelisted
record component. -
latency
private final int latencyThe field for thelatency
record component. -
gameMode
The field for thegameMode
record component. -
displayName
The field for thedisplayName
record component. -
chatSession
The field for thechatSession
record component.
-
-
Constructor Details
-
Entry
Entry(ServerPlayerEntity player) - Mappings:
Namespace Name Mixin selector official <init>
Lza$b;<init>(Lakr;)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
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
profileId
Returns the value of theprofileId
record component.- Returns:
- the value of the
profileId
record component
-
profile
Returns the value of theprofile
record component.- Returns:
- the value of the
profile
record component
-
listed
public boolean listed()Returns the value of thelisted
record component.- Returns:
- the value of the
listed
record component
-
latency
public int latency()Returns the value of thelatency
record component.- Returns:
- the value of the
latency
record component
-
gameMode
Returns the value of thegameMode
record component.- Returns:
- the value of the
gameMode
record component
-
displayName
Returns the value of thedisplayName
record component.- Returns:
- the value of the
displayName
record component
-
chatSession
Returns the value of thechatSession
record component.- Returns:
- the value of the
chatSession
record component
-