Class WrapperPlayClientChat
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.serverbound.WrapperPlayClientChat
Sents by client to server when the player sends a (signed) chat messages
-
Field Summary
FieldsFields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the value of field 'lastSeenMessages'com.comphenix.protocol.events.InternalStructureDeprecated.Gets the raw message (max length: 256)longgetSalt()Gets the salt to verify signaturescom.comphenix.protocol.wrappers.WrappedMessageSignatureGets the signature used to sign this messageRetrieves the value of field 'timeStamp'voidSets the value of field 'lastSeenMessages'voidsetLastSeenMessagesInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.voidsetMessage(String value) Sets the raw message (max length: 256)voidsetSalt(long value) Sets the salt to verify signaturesvoidsetSignature(com.comphenix.protocol.wrappers.WrappedMessageSignature value) Sets the signature used to sign this messagevoidsetTimeStamp(Instant value) Sets the value of field 'timeStamp'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPE
-
-
Constructor Details
-
WrapperPlayClientChat
public WrapperPlayClientChat() -
WrapperPlayClientChat
public WrapperPlayClientChat(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getMessage
Gets the raw message (max length: 256)- Returns:
- raw message
-
setMessage
Sets the raw message (max length: 256)- Parameters:
value- raw message
-
getTimeStamp
Retrieves the value of field 'timeStamp'- Returns:
- 'timeStamp'
-
setTimeStamp
Sets the value of field 'timeStamp'- Parameters:
value- New value for field 'timeStamp'
-
getSalt
public long getSalt()Gets the salt to verify signatures- Returns:
- 'salt'
-
setSalt
public void setSalt(long value) Sets the salt to verify signatures- Parameters:
value- New value for field 'salt'
-
getSignature
public com.comphenix.protocol.wrappers.WrappedMessageSignature getSignature()Gets the signature used to sign this message- Returns:
- 'signature'
-
setSignature
public void setSignature(com.comphenix.protocol.wrappers.WrappedMessageSignature value) Sets the signature used to sign this message- Parameters:
value- New value for field 'signature'
-
getLastSeenMessagesInternal
public com.comphenix.protocol.events.InternalStructure getLastSeenMessagesInternal()Deprecated.{UseWrapperPlayClientChatCommand.getLastSeenMessages()instead}Retrieves the value of field 'lastSeenMessages'- Returns:
- 'lastSeenMessages'
-
setLastSeenMessagesInternal
public void setLastSeenMessagesInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.Sets the value of field 'lastSeenMessages'- Parameters:
value- New value for field 'lastSeenMessages'
-
getLastSeenMessages
Retrieves the value of field 'lastSeenMessages'- Returns:
- 'lastSeenMessages'
-
setLastSeenMessages
Sets the value of field 'lastSeenMessages'- Parameters:
value- New value for field 'lastSeenMessages'
-
WrapperPlayClientChatCommand.getLastSeenMessages()instead}