public class PluginMessage extends DefinedPacket
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<String,String> |
MODERNISE |
static com.google.common.base.Predicate<PluginMessage> |
SHOULD_RELAY |
| Constructor and Description |
|---|
PluginMessage() |
PluginMessage(String tag,
byte[] data,
boolean allowExtendedPacket) |
PluginMessage(String tag,
io.netty.buffer.ByteBuf data,
boolean allowExtendedPacket) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
byte[] |
getData() |
DataInput |
getStream() |
String |
getTag() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
boolean |
isAllowExtendedPacket()
Allow this packet to be sent as an "extended" packet.
|
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setAllowExtendedPacket(boolean allowExtendedPacket)
Allow this packet to be sent as an "extended" packet.
|
void |
setData(byte[] data) |
void |
setData(io.netty.buffer.ByteBuf buf) |
void |
setTag(String tag) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readString, readString, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeString, writeStringArray, writeUUID, writeVarInt, writeVarShortpublic static final com.google.common.base.Predicate<PluginMessage> SHOULD_RELAY
public PluginMessage(String tag, io.netty.buffer.ByteBuf data, boolean allowExtendedPacket)
public PluginMessage()
public PluginMessage(String tag, byte[] data, boolean allowExtendedPacket)
public void setData(byte[] data)
public void setData(io.netty.buffer.ByteBuf buf)
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 DataInput getStream()
public String getTag()
public byte[] getData()
public boolean isAllowExtendedPacket()
public void setTag(String tag)
public void setAllowExtendedPacket(boolean allowExtendedPacket)
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–2019 WaterfallMC. All rights reserved.