Record Class ClientboundPlayerInfoUpdatePacket.Entry
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket.Entry
- Enclosing class:
- ClientboundPlayerInfoUpdatePacket
public static record ClientboundPlayerInfoUpdatePacket.Entry(UUID profileId, @Nullable com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, @Nullable Component displayName, @Nullable RemoteChatSession.Data chatSession)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final RemoteChatSession.DataThe field for thechatSessionrecord component.private final ComponentThe field for thedisplayNamerecord component.private final GameTypeThe field for thegameModerecord component.private final intThe field for thelatencyrecord component.private final booleanThe field for thelistedrecord component.private final com.mojang.authlib.GameProfileThe field for theprofilerecord component.private final UUIDThe field for theprofileIdrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionEntry(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, Component displayName, RemoteChatSession.Data chatSession) Creates an instance of aEntryrecord class.Entry(ServerPlayer p_252094_) 
- 
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.com.mojang.authlib.GameProfileprofile()Returns the value of theprofilerecord component.Returns the value of theprofileIdrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
profileIdThe field for theprofileIdrecord component.
- 
profile@Nullable private final com.mojang.authlib.GameProfile 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.
- 
chatSessionThe field for thechatSessionrecord component.
 
- 
- 
Constructor Details- 
EntryEntry(ServerPlayer p_252094_) 
- 
Entrypublic Entry(UUID profileId, @Nullable com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, @Nullable Component displayName, @Nullable RemoteChatSession.Data chatSession) Creates an instance of aEntryrecord class.- Parameters:
- profileId- the value for the- profileIdrecord component
- profile- the value for the- profilerecord component
- listed- the value for the- listedrecord component
- latency- the value for the- latencyrecord component
- gameMode- the value for the- gameModerecord component
- displayName- the value for the- displayNamerecord component
- chatSession- the value for the- chatSessionrecord component
 
 
- 
- 
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
 
- 
profile@Nullable public com.mojang.authlib.GameProfile profile()Returns 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
 
- 
chatSessionReturns the value of thechatSessionrecord component.- Returns:
- the value of the chatSessionrecord component
 
 
-