public class EncryptionRequest extends DefinedPacket
| Constructor and Description |
|---|
EncryptionRequest() |
EncryptionRequest(String serverId,
byte[] publicKey,
byte[] verifyToken) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
byte[] |
getPublicKey() |
String |
getServerId() |
byte[] |
getVerifyToken() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setPublicKey(byte[] publicKey) |
void |
setServerId(String serverId) |
void |
setVerifyToken(byte[] verifyToken) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readNBT, readString, readString, readStringArray, readUUID, readUUIDIntArray, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeNBT, writeString, writeString, writeStringArray, writeUUID, writeUUIDIntArray, writeVarInt, writeVarShortpublic EncryptionRequest()
public EncryptionRequest(String serverId, byte[] publicKey, byte[] verifyToken)
public void read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
read in class DefinedPacketpublic void write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
write in class DefinedPacketpublic void handle(AbstractPacketHandler handler) throws Exception
handle in class DefinedPacketExceptionpublic String getServerId()
public byte[] getPublicKey()
public byte[] getVerifyToken()
public void setServerId(String serverId)
public void setPublicKey(byte[] publicKey)
public void setVerifyToken(byte[] verifyToken)
public String toString()
toString in class DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2015–2020 WaterfallMC. All rights reserved.