Record Class ClientChatMessagePacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientChatMessagePacket
- All Implemented Interfaces:
NetworkBuffer.Writer,ClientPacket
public record ClientChatMessagePacket(String message, long timestamp, long salt, byte @Nullable [] signature, int ackOffset, BitSet ackList)
extends Record
implements ClientPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientChatMessagePacket(String message, long timestamp, long salt, byte @Nullable [] signature, int ackOffset, BitSet ackList) Creates an instance of aClientChatMessagePacketrecord class.ClientChatMessagePacket(@NotNull NetworkBuffer reader) -
Method Summary
Modifier and TypeMethodDescriptionackList()Returns the value of theackListrecord component.intReturns the value of theackOffsetrecord 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.voidwrite(@NotNull NetworkBuffer writer)
-
Constructor Details
-
ClientChatMessagePacket
-
ClientChatMessagePacket
public ClientChatMessagePacket(String message, long timestamp, long salt, byte @Nullable [] signature, int ackOffset, BitSet ackList) 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 component
-
-
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
-
signature
public byte @Nullable [] 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
-