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, boolean showHat, int listOrder, @Nullable RemoteChatSession.Data chatSession)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable RemoteChatSession.DataThe field for thechatSessionrecord component.private final @Nullable 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 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 Summary
ConstructorsModifierConstructorDescriptionEntry(UUID profileId, @Nullable com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, @Nullable Component displayName, boolean showHat, int listOrder, @Nullable RemoteChatSession.Data chatSession) Creates an instance of aEntryrecord class.privateEntry(ServerPlayer player) -
Method Summary
Modifier and TypeMethodDescription@Nullable RemoteChatSession.DataReturns the value of thechatSessionrecord component.@Nullable ComponentReturns 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
-
profileId
The field for theprofileIdrecord component. -
profile
private final @Nullable com.mojang.authlib.GameProfile profileThe field for theprofilerecord component. -
listed
private final boolean listedThe field for thelistedrecord component. -
latency
private final int latencyThe field for thelatencyrecord component. -
gameMode
The field for thegameModerecord component. -
displayName
The field for thedisplayNamerecord component. -
showHat
private final boolean showHatThe field for theshowHatrecord component. -
listOrder
private final int listOrderThe field for thelistOrderrecord component. -
chatSession
The field for thechatSessionrecord component.
-
-
Constructor Details
-
Entry
-
Entry
public Entry(UUID profileId, @Nullable com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, @Nullable Component displayName, boolean showHat, int listOrder, @Nullable RemoteChatSession.Data chatSession) Creates an instance of aEntryrecord class.- Parameters:
profileId- the value for theprofileIdrecord componentprofile- the value for theprofilerecord componentlisted- the value for thelistedrecord componentlatency- the value for thelatencyrecord componentgameMode- the value for thegameModerecord componentdisplayName- the value for thedisplayNamerecord componentshowHat- the value for theshowHatrecord componentlistOrder- the value for thelistOrderrecord componentchatSession- the value for thechatSessionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
profile
public @Nullable com.mojang.authlib.GameProfile profile()Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
listed
public boolean listed()Returns the value of thelistedrecord component.- Returns:
- the value of the
listedrecord component
-
latency
public int latency()Returns the value of thelatencyrecord component.- Returns:
- the value of the
latencyrecord component
-
gameMode
Returns the value of thegameModerecord component.- Returns:
- the value of the
gameModerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
showHat
public boolean showHat()Returns the value of theshowHatrecord component.- Returns:
- the value of the
showHatrecord component
-
listOrder
public int listOrder()Returns the value of thelistOrderrecord component.- Returns:
- the value of the
listOrderrecord component
-
chatSession
Returns the value of thechatSessionrecord component.- Returns:
- the value of the
chatSessionrecord component
-