Class PluginMessage

    • Field Detail

      • MODERNISE

        public static final com.google.common.base.Function<String,​String> MODERNISE
      • SHOULD_RELAY

        public static final com.google.common.base.Predicate<PluginMessage> SHOULD_RELAY
    • Constructor Detail

      • 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 Detail

      • setData

        public void setData​(byte[] data)
      • setData

        public void setData​(io.netty.buffer.ByteBuf buf)
      • 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.
      • canEqual

        protected boolean canEqual​(Object other)