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, getSender
public PluginMessageEvent(Connection sender, Connection receiver, String tag, byte[] data)
public boolean isCancelled()
isCancelled
in interface Cancellable
public String getTag()
public byte[] getData()
public void setCancelled(boolean cancelled)
setCancelled
in interface Cancellable
cancelled
- the state to setpublic String toString()
toString
in class TargetedEvent
public boolean equals(Object o)
equals
in class TargetedEvent
protected boolean canEqual(Object other)
canEqual
in class TargetedEvent
public int hashCode()
hashCode
in class TargetedEvent
Copyright © 2012–2020 SpigotMC. All rights reserved.