public class ServerboundKeyPacket extends Object implements com.github.steveice10.packetlib.packet.Packet
| Constructor and Description |
|---|
ServerboundKeyPacket(com.github.steveice10.packetlib.io.NetInput in) |
ServerboundKeyPacket(PublicKey publicKey,
SecretKey secretKey,
byte[] verifyToken) |
| Modifier and Type | Method and Description |
|---|---|
SecretKey |
getSecretKey(PrivateKey privateKey) |
byte[] |
getVerifyToken(PrivateKey privateKey) |
boolean |
isPriority() |
void |
write(com.github.steveice10.packetlib.io.NetOutput out) |
public ServerboundKeyPacket(PublicKey publicKey, SecretKey secretKey, byte[] verifyToken)
public ServerboundKeyPacket(com.github.steveice10.packetlib.io.NetInput in)
throws IOException
IOExceptionpublic SecretKey getSecretKey(PrivateKey privateKey)
public byte[] getVerifyToken(PrivateKey privateKey)
public void write(com.github.steveice10.packetlib.io.NetOutput out)
throws IOException
write in interface com.github.steveice10.packetlib.packet.PacketIOExceptionpublic boolean isPriority()
isPriority in interface com.github.steveice10.packetlib.packet.PacketCopyright © 2022. All rights reserved.