public class LoginHelloS2CPacket extends Object implements Packet<ClientLoginPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
nonce |
private byte[] |
publicKey |
private String |
serverId |
| Constructor and Description |
|---|
LoginHelloS2CPacket() |
LoginHelloS2CPacket(String serverId,
byte[] byte2,
byte[] nonce) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientLoginPacketListener clientLoginPacketListener) |
byte[] |
getNonce() |
PublicKey |
getPublicKey() |
String |
getServerId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate String serverId
private byte[] publicKey
private byte[] nonce
public LoginHelloS2CPacket()
public LoginHelloS2CPacket(String serverId, byte[] byte2, byte[] nonce)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientLoginPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientLoginPacketListener>IOExceptionpublic void apply(ClientLoginPacketListener clientLoginPacketListener)
apply in interface Packet<ClientLoginPacketListener>@Environment(value=CLIENT) public String getServerId()
@Environment(value=CLIENT) public PublicKey getPublicKey() throws NetworkEncryptionException
NetworkEncryptionException@Environment(value=CLIENT) public byte[] getNonce()