Class WrapperPlayClientChatCommand
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.serverbound.WrapperPlayClientChatCommand
Send from client to server when a (signed) command should be executed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsFields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle -
Constructor Summary
ConstructorsConstructorDescriptionWrapperPlayClientChatCommand(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionGets the signed arguments for this commandcom.comphenix.protocol.events.InternalStructureDeprecated.Retrieves the name of the command (without arguments)Retrieves the value of field 'lastSeenMessages'com.comphenix.protocol.events.InternalStructureDeprecated.{UsegetLastSeenMessages()instead}longgetSalt()Retrieves the salt to verify signaturesRetrieves the value of field 'timeStamp'voidSets the signed arguments for this commandvoidsetArgumentSignaturesInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.{UsesetArgumentSignatures(WrappedArgumentSignatures)instead}voidsetCommand(String value) Sets the value of the command without argumentsvoidSets the value of field 'lastSeenMessages'voidsetLastSeenMessagesInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.{UsesetLastSeenMessages(WrappedLastSeenMessagesUpdate)instead}voidsetSalt(long value) Sets the salt to verify signaturesvoidsetTimeStamp(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
-
WrapperPlayClientChatCommand
public WrapperPlayClientChatCommand() -
WrapperPlayClientChatCommand
public WrapperPlayClientChatCommand(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getCommand
Retrieves the name of the command (without arguments)- Returns:
- name of command
-
setCommand
Sets the value of the command without arguments- Parameters:
value- name of command
-
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()Retrieves 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'
-
getArgumentSignaturesInternal
public com.comphenix.protocol.events.InternalStructure getArgumentSignaturesInternal()Deprecated.{UsegetArgumentSignatures()instead}Retrieves the value of field 'argumentSignatures'- Returns:
- 'argumentSignatures'
-
setArgumentSignaturesInternal
@Deprecated public void setArgumentSignaturesInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.{UsesetArgumentSignatures(WrappedArgumentSignatures)instead}Sets the value of field 'argumentSignatures'- Parameters:
value- New value for field 'argumentSignatures'
-
getArgumentSignatures
Gets the signed arguments for this command- Returns:
- 'argumentSignatures'
-
setArgumentSignatures
Sets the signed arguments for this command- Parameters:
value- New value for field 'argumentSignatures'
-
getLastSeenMessagesInternal
public com.comphenix.protocol.events.InternalStructure getLastSeenMessagesInternal()Deprecated.{UsegetLastSeenMessages()instead}Retrieves the value of field 'lastSeenMessages'- Returns:
- 'lastSeenMessages'
-
setLastSeenMessagesInternal
public void setLastSeenMessagesInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.{UsesetLastSeenMessages(WrappedLastSeenMessagesUpdate)instead}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'
-
getArgumentSignatures()instead}