Class PluginMessage

java.lang.Object
net.glowstone.net.message.play.game.PluginMessage
All Implemented Interfaces:
com.flowpowered.network.Message

public final class PluginMessage extends Object implements com.flowpowered.network.Message
  • Constructor Details

    • PluginMessage

      public PluginMessage(String channel, byte[] data)
  • Method Details

    • fromString

      public static PluginMessage fromString(@NonNls @NonNls String channel, String text)
      Creates a message whose contents are a string in UTF8.
      Parameters:
      channel - the plugin message channel
      text - the contents as a string
      Returns:
      a message for channel containing a UTF8-encoded copy of text
    • getChannel

      public String getChannel()
    • getData

      public byte[] getData()
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface com.flowpowered.network.Message
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.flowpowered.network.Message
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface com.flowpowered.network.Message
      Overrides:
      toString in class Object