public class PluginMessageEvent extends TargetedEvent implements Cancellable
| Constructor and Description |
|---|
PluginMessageEvent(Connection sender,
Connection receiver,
String tag,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
byte[] |
getData()
Data contained in this plugin message.
|
String |
getTag()
Tag specified for this plugin message.
|
int |
hashCode() |
boolean |
isCancelled()
Cancelled state.
|
void |
setCancelled(boolean cancelled)
Cancelled state.
|
String |
toString() |
getReceiver, getSenderpublic PluginMessageEvent(Connection sender, Connection receiver, String tag, byte[] data)
public boolean isCancelled()
isCancelled in interface Cancellablepublic String getTag()
public byte[] getData()
public void setCancelled(boolean cancelled)
setCancelled in interface Cancellablecancelled - the state to setpublic String toString()
toString in class TargetedEventpublic boolean equals(Object o)
equals in class TargetedEventprotected boolean canEqual(Object other)
canEqual in class TargetedEventpublic int hashCode()
hashCode in class TargetedEventCopyright © 2012–2020 SpigotMC. All rights reserved.