public final class PluginMessage extends Object implements com.flowpowered.network.Message
Constructor and Description |
---|
PluginMessage(String channel,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static PluginMessage |
fromString(@NonNls String channel,
String text)
Creates a message whose contents are a string in UTF8.
|
String |
getChannel() |
byte[] |
getData() |
int |
hashCode() |
String |
toString() |
public PluginMessage(String channel, byte[] data)
public static PluginMessage fromString(@NonNls @NonNls String channel, String text)
channel
- the plugin message channeltext
- the contents as a stringchannel
containing a UTF8-encoded copy of text
public String getChannel()
public byte[] getData()
public boolean equals(Object o)
public int hashCode()
Copyright © 2021. All rights reserved.