Record Class PlayerInfoUpdatePacket.Entry
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.PlayerInfoUpdatePacket.Entry
- Enclosing class:
PlayerInfoUpdatePacket
public static record PlayerInfoUpdatePacket.Entry(UUID uuid, String username, List<PlayerInfoUpdatePacket.Property> properties, boolean listed, int latency, GameMode gameMode, @Nullable Component displayName, @Nullable ChatSession chatSession, int listOrder, boolean displayHat)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(UUID uuid, String username, List<PlayerInfoUpdatePacket.Property> properties, boolean listed, int latency, GameMode gameMode, @Nullable Component displayName, @Nullable ChatSession chatSession, int listOrder, boolean displayHat) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatSessionrecord component.booleanReturns the value of thedisplayHatrecord 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.Returns the value of thepropertiesrecord component.serializer(EnumSet<PlayerInfoUpdatePacket.Action> actions) final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Entry
public Entry(UUID uuid, String username, List<PlayerInfoUpdatePacket.Property> properties, boolean listed, int latency, GameMode gameMode, @Nullable @Nullable Component displayName, @Nullable @Nullable ChatSession chatSession, int listOrder, boolean displayHat) Creates an instance of aEntryrecord class.- Parameters:
uuid- the value for theuuidrecord componentusername- the value for theusernamerecord componentproperties- the value for thepropertiesrecord componentlisted- the value for thelistedrecord componentlatency- the value for thelatencyrecord componentgameMode- the value for thegameModerecord componentdisplayName- the value for thedisplayNamerecord componentchatSession- the value for thechatSessionrecord componentlistOrder- the value for thelistOrderrecord componentdisplayHat- the value for thedisplayHatrecord component
-
-
Method Details
-
serializer
public static NetworkBuffer.Type<PlayerInfoUpdatePacket.Entry> serializer(EnumSet<PlayerInfoUpdatePacket.Action> actions) -
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. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord 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
-
chatSession
Returns the value of thechatSessionrecord component.- Returns:
- the value of the
chatSessionrecord component
-
listOrder
public int listOrder()Returns the value of thelistOrderrecord component.- Returns:
- the value of the
listOrderrecord component
-
displayHat
public boolean displayHat()Returns the value of thedisplayHatrecord component.- Returns:
- the value of the
displayHatrecord component
-