public class ProxyPingMessage extends Object implements NegativityMessage
| Modifier and Type | Field and Description |
|---|---|
static byte |
MESSAGE_ID |
| Constructor and Description |
|---|
ProxyPingMessage() |
ProxyPingMessage(int protocol) |
ProxyPingMessage(int protocol,
List<String> plugins) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getPlugins()
Get all plugins on proxy
|
int |
getProtocol() |
byte |
messageId()
Get the negativity message ID
|
void |
readFrom(DataInputStream input)
Read the message from the input stream
|
void |
writeTo(DataOutputStream output)
Write the message from the input stream
|
public static final byte MESSAGE_ID
public ProxyPingMessage()
public ProxyPingMessage(int protocol)
public byte messageId()
NegativityMessagemessageId in interface NegativityMessagepublic void readFrom(DataInputStream input) throws IOException
NegativityMessagereadFrom in interface NegativityMessageinput - the input stream which contains the negativity messageIOException - if there is an exceptionpublic void writeTo(DataOutputStream output) throws IOException
NegativityMessagewriteTo in interface NegativityMessageoutput - the output stream which contains the negativity messageIOException - if there is an exceptionpublic int getProtocol()