public class ServerboundKeyPacket extends Object implements MinecraftPacket
| Constructor and Description |
|---|
ServerboundKeyPacket(io.netty.buffer.ByteBuf in,
MinecraftCodecHelper helper) |
ServerboundKeyPacket(PublicKey publicKey,
SecretKey secretKey,
byte[] challenge) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncryptedChallenge(PrivateKey privateKey) |
SecretKey |
getSecretKey(PrivateKey privateKey) |
boolean |
isPriority() |
void |
serialize(io.netty.buffer.ByteBuf out,
MinecraftCodecHelper helper) |
public ServerboundKeyPacket(PublicKey publicKey, SecretKey secretKey, byte[] challenge)
public ServerboundKeyPacket(io.netty.buffer.ByteBuf in,
MinecraftCodecHelper helper)
public SecretKey getSecretKey(PrivateKey privateKey)
public byte[] getEncryptedChallenge(PrivateKey privateKey)
public void serialize(io.netty.buffer.ByteBuf out,
MinecraftCodecHelper helper)
serialize in interface MinecraftPacketpublic boolean isPriority()
isPriority in interface com.github.steveice10.packetlib.packet.PacketCopyright © 2022. All rights reserved.