Class LoginHelloS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.login.LoginHelloS2CPacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
public class LoginHelloS2CPacket extends Object implements Packet<ClientLoginPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LoginHelloS2CPacket()LoginHelloS2CPacket(String serverId, byte[] byte2, byte[] nonce) -
Method Summary
Modifier and Type Method Description voidapply(ClientLoginPacketListener clientLoginPacketListener)byte[]getNonce()PublicKeygetPublicKey()StringgetServerId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
serverId
-
publicKey
private byte[] publicKey -
nonce
private byte[] nonce
-
-
Constructor Details
-
LoginHelloS2CPacket
public LoginHelloS2CPacket() -
LoginHelloS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientLoginPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientLoginPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientLoginPacketListener>
-
getServerId
-
getPublicKey
- Throws:
NetworkEncryptionException
-
getNonce
@Environment(CLIENT) public byte[] getNonce()
-