public class AlertMessage extends Object implements NegativityMessage, NegativityMessageMultiProxy
| Modifier and Type | Field and Description |
|---|---|
static byte |
MESSAGE_ID |
| Constructor and Description |
|---|
AlertMessage() |
AlertMessage(UUID playerId,
String cheat,
int reliability,
int ping,
Cheat.CheatHover hoverInfo,
long alertsCount) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAlertsCount() |
String |
getCheat() |
Cheat.CheatHover |
getHoverInfo() |
int |
getPing() |
UUID |
getPlayerUUID() |
int |
getReliability() |
boolean |
isMultiple() |
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 AlertMessage()
public AlertMessage(UUID playerId, String cheat, int reliability, int ping, Cheat.CheatHover hoverInfo, long alertsCount)
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 UUID getPlayerUUID()
public String getCheat()
public int getReliability()
public int getPing()
public Cheat.CheatHover getHoverInfo()
public long getAlertsCount()
public boolean isMultiple()