Record Class ClientSignedCommandChatPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientSignedCommandChatPacket
- All Implemented Interfaces:
ClientPacket
public record ClientSignedCommandChatPacket(String message, long timestamp, long salt, ArgumentSignatures signatures, LastSeenMessages.Update lastSeenMessages, byte checksum)
extends Record
implements ClientPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientSignedCommandChatPacket(String message, long timestamp, long salt, ArgumentSignatures signatures, LastSeenMessages.Update lastSeenMessages, byte checksum) Creates an instance of aClientSignedCommandChatPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbytechecksum()Returns the value of thechecksumrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastSeenMessagesrecord component.message()Returns the value of themessagerecord component.longsalt()Returns the value of thesaltrecord component.Returns the value of thesignaturesrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientSignedCommandChatPacket
public ClientSignedCommandChatPacket(String message, long timestamp, long salt, ArgumentSignatures signatures, LastSeenMessages.Update lastSeenMessages, byte checksum) Creates an instance of aClientSignedCommandChatPacketrecord 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 componentchecksum- the value for thechecksumrecord 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. -
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
-
checksum
public byte checksum()Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-