Class ServerboundKeyPacket
java.lang.Object
net.minecraft.network.protocol.login.ServerboundKeyPacket
- All Implemented Interfaces:
- Packet<ServerLoginPacketListener>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final byte[]private final byte[]
- 
Constructor SummaryConstructorsConstructorDescriptionServerboundKeyPacket(SecretKey p_134856_, PublicKey p_134857_, byte[] p_134858_) ServerboundKeyPacket(FriendlyByteBuf p_179829_) 
- 
Method SummaryModifier and TypeMethodDescriptiongetSecretKey(PrivateKey p_134860_) voidhandle(ServerLoginPacketListener p_134866_) booleanisChallengeValid(byte[] p_254210_, PrivateKey p_253763_) voidwrite(FriendlyByteBuf p_134870_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
keybytesprivate final byte[] keybytes
- 
encryptedChallengeprivate final byte[] encryptedChallenge
 
- 
- 
Constructor Details- 
ServerboundKeyPacketpublic ServerboundKeyPacket(SecretKey p_134856_, PublicKey p_134857_, byte[] p_134858_) throws CryptException - Throws:
- CryptException
 
- 
ServerboundKeyPacket
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ServerLoginPacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ServerLoginPacketListener>
 
- 
getSecretKey- Throws:
- CryptException
 
- 
isChallengeValid
 
-