Package net.md_5.bungee.protocol.packet
Class PluginMessage
java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
net.md_5.bungee.protocol.packet.PluginMessage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPluginMessage(String tag, byte[] data, boolean allowExtendedPacket) Creates a newPluginMessageinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbyte[]getData()getTag()voidhandle(AbstractPacketHandler handler) inthashCode()booleanAllow this packet to be sent as an "extended" packet.voidread(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) voidsetAllowExtendedPacket(boolean allowExtendedPacket) Allow this packet to be sent as an "extended" packet.voidsetData(byte[] data) voidtoString()voidwrite(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) Methods inherited from class net.md_5.bungee.protocol.DefinedPacket
nextProtocol, read, read, readArray, readArray, readBaseComponent, readBaseComponent, readComponentStyle, readEitherBaseComponent, readEnumSet, readFixedBitSet, readLengthPrefixed, readNullable, readNumberFormat, readProperties, readPublicKey, readString, readString, readStringArray, readStringMapKey, readTag, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, setVarInt, toArray, write, write, writeArray, writeBaseComponent, writeComponentStyle, writeEitherBaseComponent, writeEnumSet, writeFixedBitSet, writeLengthPrefixed, writeNullable, writeNumberFormat, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
-
Field Details
-
BUNGEE_CHANNEL_LEGACY
- See Also:
-
BUNGEE_CHANNEL_MODERN
- See Also:
-
MODERNISE
-
-
Constructor Details
-
PluginMessage
public PluginMessage() -
PluginMessage
Creates a newPluginMessageinstance.- Parameters:
tag-data-allowExtendedPacket- Allow this packet to be sent as an "extended" packet.
-
-
Method Details
-
read
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
readin classDefinedPacket
-
write
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
writein classDefinedPacket
-
handle
- Specified by:
handlein classDefinedPacket- Throws:
Exception
-
getStream
-
getTag
-
getData
public byte[] getData() -
isAllowExtendedPacket
public boolean isAllowExtendedPacket()Allow this packet to be sent as an "extended" packet. -
setTag
-
setData
public void setData(byte[] data) -
setAllowExtendedPacket
public void setAllowExtendedPacket(boolean allowExtendedPacket) Allow this packet to be sent as an "extended" packet. -
toString
- Specified by:
toStringin classDefinedPacket
-
equals
- Specified by:
equalsin classDefinedPacket
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classDefinedPacket
-