public class ClientChat extends DefinedPacket
| Constructor and Description |
|---|
ClientChat() |
ClientChat(String message,
long timestamp,
long salt,
byte[] signature,
boolean signedPreview,
ChatChain chain,
SeenMessages seenMessages) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ChatChain |
getChain() |
String |
getMessage() |
long |
getSalt() |
SeenMessages |
getSeenMessages() |
byte[] |
getSignature() |
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 |
setMessage(String message) |
void |
setSalt(long salt) |
void |
setSeenMessages(SeenMessages seenMessages) |
void |
setSignature(byte[] signature) |
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 ClientChat()
public ClientChat(String message, long timestamp, long salt, byte[] signature, 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 getMessage()
public long getTimestamp()
public long getSalt()
public byte[] getSignature()
public boolean isSignedPreview()
public ChatChain getChain()
public SeenMessages getSeenMessages()
public void setMessage(String message)
public void setTimestamp(long timestamp)
public void setSalt(long salt)
public void setSignature(byte[] signature)
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.