Record Class ClientChatMessagePacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientChatMessagePacket
- All Implemented Interfaces:
ClientPacket
public record ClientChatMessagePacket(String message, long timestamp, long salt, byte @Nullable [] signature, int ackOffset, BitSet ackList, byte checksum)
extends Record
implements ClientPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientChatMessagePacket(String message, long timestamp, long salt, byte @Nullable [] signature, int ackOffset, BitSet ackList, byte checksum) Creates an instance of aClientChatMessagePacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionackList()Returns the value of theackListrecord component.intReturns the value of theackOffsetrecord component.bytechecksum()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.message()Returns the value of themessagerecord component.longsalt()Returns the value of thesaltrecord component.byte @Nullable []Returns the value of thesignaturerecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientChatMessagePacket
public ClientChatMessagePacket(String message, long timestamp, long salt, byte @Nullable [] signature, int ackOffset, BitSet ackList, byte checksum) Creates an instance of aClientChatMessagePacketrecord class.- Parameters:
message- the value for themessagerecord componenttimestamp- the value for thetimestamprecord componentsalt- the value for thesaltrecord componentsignature- the value for thesignaturerecord componentackOffset- the value for theackOffsetrecord componentackList- the value for theackListrecord 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
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
ackOffset
public int ackOffset()Returns the value of theackOffsetrecord component.- Returns:
- the value of the
ackOffsetrecord component
-
ackList
Returns the value of theackListrecord component.- Returns:
- the value of the
ackListrecord component
-
checksum
public byte checksum()Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-