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 Summary
Modifier and TypeFieldDescriptionprivate final RemoteChatSession.Data
The field for thechatSession
record component.private final Component
The field for thedisplayName
record component.private final GameType
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 com.mojang.authlib.GameProfile
The field for theprofile
record component.private final UUID
The field for theprofileId
record component. -
Constructor Summary
ConstructorDescriptionEntry
(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, Component displayName, RemoteChatSession.Data chatSession) Creates an instance of aEntry
record class.Entry
(ServerPlayer p_252094_) -
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.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
@Nullable private final com.mojang.authlib.GameProfile profileThe 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(ServerPlayer p_252094_) -
Entry
public 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 aEntry
record class.- Parameters:
profileId
- the value for theprofileId
record componentprofile
- the value for theprofile
record componentlisted
- the value for thelisted
record componentlatency
- the value for thelatency
record componentgameMode
- the value for thegameMode
record componentdisplayName
- the value for thedisplayName
record componentchatSession
- the value for thechatSession
record component
-
-
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
@Nullable public com.mojang.authlib.GameProfile 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
-