Class LoginKeyC2SPacket

java.lang.Object
net.minecraft.network.packet.c2s.login.LoginKeyC2SPacket
All Implemented Interfaces:
Packet<ServerLoginPacketListener>

public class LoginKeyC2SPacket extends Object implements Packet<ServerLoginPacketListener>
Mappings:
Namespace Name
official xe
intermediary net/minecraft/class_2917
named net/minecraft/network/packet/c2s/login/LoginKeyC2SPacket
  • Field Details

    • encryptedSecretKey

      private final byte[] encryptedSecretKey
      Mappings:
      Namespace Name Mixin selector
      official a Lxe;a:[B
      intermediary field_13274 Lnet/minecraft/class_2917;field_13274:[B
      named encryptedSecretKey Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;encryptedSecretKey:[B
    • encryptedNonce

      private final byte[] encryptedNonce
      Mappings:
      Namespace Name Mixin selector
      official b Lxe;b:[B
      intermediary field_13273 Lnet/minecraft/class_2917;field_13273:[B
      named encryptedNonce Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;encryptedNonce:[B
  • Constructor Details

    • LoginKeyC2SPacket

      public LoginKeyC2SPacket(SecretKey secretKey, PublicKey publicKey, byte[] nonce) throws NetworkEncryptionException
      Throws:
      NetworkEncryptionException
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxe;<init>(Ljavax/crypto/SecretKey;Ljava/security/PublicKey;[B)V
      intermediary <init> Lnet/minecraft/class_2917;<init>(Ljavax/crypto/SecretKey;Ljava/security/PublicKey;[B)V
      named <init> Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;<init>(Ljavax/crypto/SecretKey;Ljava/security/PublicKey;[B)V
    • LoginKeyC2SPacket

      public LoginKeyC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxe;<init>(Lpn;)V
      intermediary <init> Lnet/minecraft/class_2917;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ServerLoginPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lqr;a(Lpn;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ServerLoginPacketListener serverLoginPacketListener)
      Specified by:
      apply in interface Packet<ServerLoginPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lxe;a(Lxb;)V
      intermediary method_12653 Lnet/minecraft/class_2917;method_12653(Lnet/minecraft/class_2911;)V
      named apply Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;apply(Lnet/minecraft/network/listener/ServerLoginPacketListener;)V
    • decryptSecretKey

      public SecretKey decryptSecretKey(PrivateKey privateKey) throws NetworkEncryptionException
      Throws:
      NetworkEncryptionException
      Mappings:
      Namespace Name Mixin selector
      official a Lxe;a(Ljava/security/PrivateKey;)Ljavax/crypto/SecretKey;
      intermediary method_12654 Lnet/minecraft/class_2917;method_12654(Ljava/security/PrivateKey;)Ljavax/crypto/SecretKey;
      named decryptSecretKey Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;decryptSecretKey(Ljava/security/PrivateKey;)Ljavax/crypto/SecretKey;
    • decryptNonce

      public byte[] decryptNonce(PrivateKey privateKey) throws NetworkEncryptionException
      Throws:
      NetworkEncryptionException
      Mappings:
      Namespace Name Mixin selector
      official b Lxe;b(Ljava/security/PrivateKey;)[B
      intermediary method_12655 Lnet/minecraft/class_2917;method_12655(Ljava/security/PrivateKey;)[B
      named decryptNonce Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;decryptNonce(Ljava/security/PrivateKey;)[B