Class ClientboundHelloPacket
java.lang.Object
net.minecraft.network.protocol.login.ClientboundHelloPacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientboundHelloPacket
(String p_134782_, byte[] p_134783_, byte[] p_134784_) ClientboundHelloPacket
(FriendlyByteBuf p_179816_) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
void
handle
(ClientLoginPacketListener p_134790_) void
write
(FriendlyByteBuf p_134793_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
serverId
-
publicKey
private final byte[] publicKey -
challenge
private final byte[] challenge
-
-
Constructor Details
-
ClientboundHelloPacket
-
ClientboundHelloPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientLoginPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientLoginPacketListener>
-
getServerId
-
getPublicKey
- Throws:
CryptException
-
getChallenge
public byte[] getChallenge()
-