Class PluginMessage

java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
net.md_5.bungee.protocol.packet.PluginMessage

public class PluginMessage extends DefinedPacket
  • Field Details

    • MODERNISE

      public static final com.google.common.base.Function<String,String> MODERNISE
  • Constructor Details

    • PluginMessage

      public PluginMessage(String tag, io.netty.buffer.ByteBuf data, boolean allowExtendedPacket)
    • PluginMessage

      public PluginMessage()
    • PluginMessage

      public PluginMessage(String tag, byte[] data, boolean allowExtendedPacket)
  • Method Details

    • setData

      public void setData(byte[] data)
    • setData

      public void setData(io.netty.buffer.ByteBuf buf)
    • read

      public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
      Overrides:
      read in class DefinedPacket
    • write

      public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
      Overrides:
      write in class DefinedPacket
    • handle

      public void handle(AbstractPacketHandler handler) throws Exception
      Specified by:
      handle in class DefinedPacket
      Throws:
      Exception
    • getStream

      public DataInput getStream()
    • getTag

      public String getTag()
    • getData

      public byte[] getData()
    • isAllowExtendedPacket

      public boolean isAllowExtendedPacket()
      Allow this packet to be sent as an "extended" packet.
    • setTag

      public void setTag(String tag)
    • setAllowExtendedPacket

      public void setAllowExtendedPacket(boolean allowExtendedPacket)
      Allow this packet to be sent as an "extended" packet.
    • toString

      public String toString()
      Specified by:
      toString in class DefinedPacket
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class DefinedPacket
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class DefinedPacket