public class ClientCommand extends DefinedPacket
| Constructor and Description |
|---|
ClientCommand() |
ClientCommand(String command,
long timestamp,
long salt,
Map<String,byte[]> signatures,
boolean signedPreview,
ChatChain chain,
SeenMessages seenMessages) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ChatChain |
getChain() |
String |
getCommand() |
long |
getSalt() |
SeenMessages |
getSeenMessages() |
Map<String,byte[]> |
getSignatures() |
long |
getTimestamp() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isSignedPreview() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setChain(ChatChain chain) |
void |
setCommand(String command) |
void |
setSalt(long salt) |
void |
setSeenMessages(SeenMessages seenMessages) |
void |
setSignatures(Map<String,byte[]> signatures) |
void |
setSignedPreview(boolean signedPreview) |
void |
setTimestamp(long timestamp) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readEnumSet, readFixedBitSet, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeEnumSet, writeFixedBitSet, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShortpublic ClientCommand()
public ClientCommand(String command, long timestamp, long salt, Map<String,byte[]> signatures, boolean signedPreview, ChatChain chain, SeenMessages seenMessages)
public void read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
read in class DefinedPacketpublic void write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
write in class DefinedPacketpublic void handle(AbstractPacketHandler handler) throws Exception
handle in class DefinedPacketExceptionpublic String getCommand()
public long getTimestamp()
public long getSalt()
public boolean isSignedPreview()
public ChatChain getChain()
public SeenMessages getSeenMessages()
public void setCommand(String command)
public void setTimestamp(long timestamp)
public void setSalt(long salt)
public void setSignedPreview(boolean signedPreview)
public void setChain(ChatChain chain)
public void setSeenMessages(SeenMessages seenMessages)
public String toString()
toString in class DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2012–2023 SpigotMC. All rights reserved.