Class ServerboundKeyPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.serverbound.ServerboundKeyPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundKeyPacket(io.netty.buffer.ByteBuf in) ServerboundKeyPacket(PublicKey publicKey, SecretKey secretKey, byte[] challenge) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbyte[]getEncryptedChallenge(PrivateKey privateKey) getSecretKey(PrivateKey privateKey) inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isTerminal, shouldRunOnGameThread
-
Constructor Details
-
ServerboundKeyPacket
-
ServerboundKeyPacket
public ServerboundKeyPacket(io.netty.buffer.ByteBuf in)
-
-
Method Details
-
getSecretKey
-
getEncryptedChallenge
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-