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-
- showHat-
- 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, boolean showHat, 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 - adt$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 - showHat- intermediary - comp_3324- official - g- named - listOrder- intermediary - comp_2889- official - h- named - chatSession- intermediary - comp_1112- official - i
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final PublicPlayerSession.SerializedThe field for thechatSessionrecord component.The field for thedisplayNamerecord component.private final GameModeThe field for thegameModerecord component.private final intThe field for thelatencyrecord component.private final booleanThe field for thelistedrecord component.private final intThe field for thelistOrderrecord component.private final @Nullable com.mojang.authlib.GameProfileThe field for theprofilerecord component.private final UUIDThe field for theprofileIdrecord component.private final booleanThe field for theshowHatrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionEntry(UUID uUID, @Nullable com.mojang.authlib.GameProfile gameProfile, boolean bool, int int2, GameMode gameMode, @Nullable Text text, boolean bool2, int int3, PublicPlayerSession.Serialized serialized) Entry(ServerPlayerEntity player) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thechatSessionrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.gameMode()Returns the value of thegameModerecord component.final inthashCode()Returns a hash code value for this object.intlatency()Returns the value of thelatencyrecord component.booleanlisted()Returns the value of thelistedrecord component.intReturns the value of thelistOrderrecord component.@Nullable com.mojang.authlib.GameProfileprofile()Returns the value of theprofilerecord component.Returns the value of theprofileIdrecord component.booleanshowHat()Returns the value of theshowHatrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
profileIdThe field for theprofileIdrecord component.
- 
profileThe field for theprofilerecord component.
- 
listedprivate final boolean listedThe field for thelistedrecord component.
- 
latencyprivate final int latencyThe field for thelatencyrecord component.
- 
gameModeThe field for thegameModerecord component.
- 
displayNameThe field for thedisplayNamerecord component.
- 
showHatprivate final boolean showHatThe field for theshowHatrecord component.
- 
listOrderprivate final int listOrderThe field for thelistOrderrecord component.
- 
chatSessionThe field for thechatSessionrecord component.
 
- 
- 
Constructor Details- 
EntryEntry(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>- Ladt$b;<init>(Lare;)V
 
- 
Entry
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
profileIdReturns the value of theprofileIdrecord component.- Returns:
- the value of the profileIdrecord component
 
- 
profileReturns the value of theprofilerecord component.- Returns:
- the value of the profilerecord component
 
- 
listedpublic boolean listed()Returns the value of thelistedrecord component.- Returns:
- the value of the listedrecord component
 
- 
latencypublic int latency()Returns the value of thelatencyrecord component.- Returns:
- the value of the latencyrecord component
 
- 
gameModeReturns the value of thegameModerecord component.- Returns:
- the value of the gameModerecord component
 
- 
displayNameReturns the value of thedisplayNamerecord component.- Returns:
- the value of the displayNamerecord component
 
- 
showHatpublic boolean showHat()Returns the value of theshowHatrecord component.- Returns:
- the value of the showHatrecord component
 
- 
listOrderpublic int listOrder()Returns the value of thelistOrderrecord component.- Returns:
- the value of the listOrderrecord component
 
- 
chatSessionReturns the value of thechatSessionrecord component.- Returns:
- the value of the chatSessionrecord component
 
 
-