public class Chat extends DefinedPacket
| Constructor and Description |
|---|
Chat() |
Chat(String message) |
Chat(String message,
byte position) |
Chat(String message,
byte position,
UUID sender) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getMessage() |
byte |
getPosition() |
UUID |
getSender() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setMessage(String message) |
void |
setPosition(byte position) |
void |
setSender(UUID sender) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readNBT, readString, readString, readStringArray, readUUID, readUUIDIntArray, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeNBT, writeString, writeString, writeStringArray, writeUUID, writeUUIDIntArray, writeVarInt, writeVarShortpublic Chat(String message, byte position)
public Chat(String message)
public Chat()
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 byte getPosition()
public UUID getSender()
public void setMessage(String message)
public void setPosition(byte position)
public void setSender(UUID sender)
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 © 2015–2020 WaterfallMC. All rights reserved.