Class ClientboundHelloPacket
java.lang.Object
net.minecraft.network.protocol.login.ClientboundHelloPacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
private final byte[]
private final String
private final boolean
static final StreamCodec
<FriendlyByteBuf, ClientboundHelloPacket> -
Constructor Summary
ModifierConstructorDescriptionClientboundHelloPacket
(String p_134782_, byte[] p_134783_, byte[] p_134784_, boolean p_320681_) private
ClientboundHelloPacket
(FriendlyByteBuf p_179816_) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
void
handle
(ClientLoginPacketListener p_134790_) boolean
type()
private 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, isTerminal
-
Field Details
-
STREAM_CODEC
-
serverId
-
publicKey
private final byte[] publicKey -
challenge
private final byte[] challenge -
shouldAuthenticate
private final boolean shouldAuthenticate
-
-
Constructor Details
-
ClientboundHelloPacket
public ClientboundHelloPacket(String p_134782_, byte[] p_134783_, byte[] p_134784_, boolean p_320681_) -
ClientboundHelloPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientLoginPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientLoginPacketListener>
-
getServerId
-
getPublicKey
- Throws:
CryptException
-
getChallenge
public byte[] getChallenge() -
shouldAuthenticate
public boolean shouldAuthenticate()
-