public class PacketViolationWarningPacket extends java.lang.Object implements BedrockPacket
| Constructor and Description |
|---|
PacketViolationWarningPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
PacketViolationWarningPacket |
clone()
Creates a new instance of this packet using Object.clone()
Will throw a
UnsupportedOperationException if the packet implements ReferenceCounted |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getContext() |
int |
getPacketCauseId() |
BedrockPacketType |
getPacketType() |
PacketViolationSeverity |
getSeverity() |
PacketViolationType |
getType() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
void |
setContext(java.lang.String context) |
void |
setPacketCauseId(int packetCauseId) |
void |
setSeverity(PacketViolationSeverity severity) |
void |
setType(PacketViolationType type) |
java.lang.String |
toString() |
public org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic PacketViolationWarningPacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic PacketViolationType getType()
public PacketViolationSeverity getSeverity()
public int getPacketCauseId()
public java.lang.String getContext()
public void setType(PacketViolationType type)
public void setSeverity(PacketViolationSeverity severity)
public void setPacketCauseId(int packetCauseId)
public void setContext(java.lang.String context)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object