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, MinecraftCodecHelper helper) ServerboundKeyPacket(PublicKey publicKey, SecretKey secretKey, byte[] challenge) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbyte[]getEncryptedChallenge(PrivateKey privateKey) getSecretKey(PrivateKey privateKey) inthashCode()booleanGets whether the packet has handling priority.voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @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
-
Constructor Details
-
ServerboundKeyPacket
-
ServerboundKeyPacket
-
-
Method Details
-
getSecretKey
-
getEncryptedChallenge
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
isPriority
public boolean isPriority()Description copied from interface:PacketGets whether the packet has handling priority. If the result is true, the packet will be handled immediately after being decoded.- Specified by:
isPriorityin interfacePacket- Returns:
- Whether the packet has priority.
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-