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 uz
intermediary net/minecraft/class_2917
named net/minecraft/network/packet/c2s/login/LoginKeyC2SPacket
  • Field Details

    • encryptedSecretKey

      private byte[] encryptedSecretKey
      Mappings:
      Namespace Name Mixin selector
      official a Luz;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 byte[] encryptedNonce
      Mappings:
      Namespace Name Mixin selector
      official b Luz;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()
    • LoginKeyC2SPacket

      @Environment(CLIENT) public LoginKeyC2SPacket​(SecretKey secretKey, PublicKey publicKey, byte[] nonce) throws NetworkEncryptionException
      Throws:
      NetworkEncryptionException
      Mappings:
      Namespace Name Mixin selector
      official <init> Luz;<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
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ServerLoginPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ServerLoginPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)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 Luz;a(Luw;)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 Luz;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 Luz;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