Record Class DeleteChatPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.DeleteChatPacket
- Record Components:
signature- the signature of the message to remove, either in full or as an index into the signature cache of the client
- All Implemented Interfaces:
Packet, SendablePacket, ServerPacket, ServerPacket.Play
public record DeleteChatPacket(MessageSignature.Packed signature)
extends Record
implements ServerPacket.Play
Removes a signed message from the chat of the client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Handshake, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeleteChatPacket(MessageSignature signature) Creates a packet that removes the message with the given full signature.DeleteChatPacket(MessageSignature.Packed signature) Creates an instance of aDeleteChatPacketrecord class. -
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.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
DeleteChatPacket
Creates a packet that removes the message with the given full signature.- Parameters:
signature- the full signature of the message to remove
-
DeleteChatPacket
Creates an instance of aDeleteChatPacketrecord class.- Parameters:
signature- the value for thesignaturerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
signature
-