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) |
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 |
setTag(String tag) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readString, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeStringArray, writeUUID, writeVarInt, writeVarShort
public static final com.google.common.base.Predicate<PluginMessage> SHOULD_RELAY
public PluginMessage()
public PluginMessage(String tag, byte[] data, boolean allowExtendedPacket)
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
read
in class DefinedPacket
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
write
in class DefinedPacket
public void handle(AbstractPacketHandler handler) throws Exception
handle
in class DefinedPacket
Exception
public DataInput getStream()
public String getTag()
public byte[] getData()
public boolean isAllowExtendedPacket()
public void setTag(String tag)
public void setData(byte[] data)
public void setAllowExtendedPacket(boolean allowExtendedPacket)
public String toString()
toString
in class DefinedPacket
public boolean equals(Object o)
equals
in class DefinedPacket
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class DefinedPacket
Copyright © 2012–2020 SpigotMC. All rights reserved.