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
-listOrder
-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, int listOrder, 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 aez$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 listOrder
intermediary comp_2889
official g
named chatSession
intermediary comp_1112
official h
-
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 int
The field for thelistOrder
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, int int3, 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.int
Returns the value of thelistOrder
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. -
listOrder
private final int listOrderThe field for thelistOrder
record component. -
chatSession
The field for thechatSession
record component.
-
-
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>
Laez$b;<init>(Lasi;)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
-
listOrder
public int listOrder()Returns the value of thelistOrder
record component.- Returns:
- the value of the
listOrder
record component
-
chatSession
Returns the value of thechatSession
record component.- Returns:
- the value of the
chatSession
record component
-