Record Class ClientCommandChatPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientCommandChatPacket
- All Implemented Interfaces:
NetworkBuffer.Writer,ClientPacket
public record ClientCommandChatPacket(@NotNull String message, long timestamp, long salt, @NotNull ArgumentSignatures signatures, @NotNull LastSeenMessages.Update lastSeenMessages)
extends Record
implements ClientPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientCommandChatPacket(@NotNull String message, long timestamp, long salt, @NotNull ArgumentSignatures signatures, @NotNull LastSeenMessages.Update lastSeenMessages) Creates an instance of aClientCommandChatPacketrecord class.ClientCommandChatPacket(@NotNull NetworkBuffer reader) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull LastSeenMessages.UpdateReturns the value of thelastSeenMessagesrecord component.@NotNull Stringmessage()Returns the value of themessagerecord component.longsalt()Returns the value of thesaltrecord component.@NotNull ArgumentSignaturesReturns the value of thesignaturesrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.voidwrite(@NotNull NetworkBuffer writer)
-
Constructor Details
-
ClientCommandChatPacket
public ClientCommandChatPacket(@NotNull @NotNull String message, long timestamp, long salt, @NotNull @NotNull ArgumentSignatures signatures, @NotNull LastSeenMessages.Update lastSeenMessages) Creates an instance of aClientCommandChatPacketrecord class.- Parameters:
message- the value for themessagerecord componenttimestamp- the value for thetimestamprecord componentsalt- the value for thesaltrecord componentsignatures- the value for thesignaturesrecord componentlastSeenMessages- the value for thelastSeenMessagesrecord component
-
ClientCommandChatPacket
-
-
Method Details
-
write
- Specified by:
writein interfaceNetworkBuffer.Writer
-
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 '=='. -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
salt
public long salt()Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-
signatures
Returns the value of thesignaturesrecord component.- Returns:
- the value of the
signaturesrecord component
-
lastSeenMessages
Returns the value of thelastSeenMessagesrecord component.- Returns:
- the value of the
lastSeenMessagesrecord component
-