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>
Mappings:
Namespace Name
official ut
intermediary net/minecraft/class_2905
named net/minecraft/network/packet/s2c/login/LoginHelloS2CPacket
  • Field Details

    • serverId

      private String serverId
      Mappings:
      Namespace Name Mixin selector
      official a Lut;a:Ljava/lang/String;
      intermediary field_13209 Lnet/minecraft/class_2905;field_13209:Ljava/lang/String;
      named serverId Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;serverId:Ljava/lang/String;
    • publicKey

      private byte[] publicKey
      Mappings:
      Namespace Name Mixin selector
      official b Lut;b:[B
      intermediary field_13211 Lnet/minecraft/class_2905;field_13211:[B
      named publicKey Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;publicKey:[B
    • nonce

      private byte[] nonce
      Mappings:
      Namespace Name Mixin selector
      official c Lut;c:[B
      intermediary field_13210 Lnet/minecraft/class_2905;field_13210:[B
      named nonce Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;nonce:[B
  • Constructor Details

    • LoginHelloS2CPacket

      public LoginHelloS2CPacket()
    • LoginHelloS2CPacket

      public LoginHelloS2CPacket​(String serverId, byte[] byte2, byte[] nonce)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lut;<init>(Ljava/lang/String;[B[B)V
      intermediary <init> Lnet/minecraft/class_2905;<init>(Ljava/lang/String;[B[B)V
      named <init> Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;<init>(Ljava/lang/String;[B[B)V
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientLoginPacketListener>
      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<ClientLoginPacketListener>
      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​(ClientLoginPacketListener clientLoginPacketListener)
      Specified by:
      apply in interface Packet<ClientLoginPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lut;a(Luq;)V
      intermediary method_12612 Lnet/minecraft/class_2905;method_12612(Lnet/minecraft/class_2896;)V
      named apply Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;apply(Lnet/minecraft/network/listener/ClientLoginPacketListener;)V
    • getServerId

      @Environment(CLIENT) public String getServerId()
      Mappings:
      Namespace Name Mixin selector
      official b Lut;b()Ljava/lang/String;
      intermediary method_12610 Lnet/minecraft/class_2905;method_12610()Ljava/lang/String;
      named getServerId Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;getServerId()Ljava/lang/String;
    • getPublicKey

      Throws:
      NetworkEncryptionException
      Mappings:
      Namespace Name Mixin selector
      official c Lut;c()Ljava/security/PublicKey;
      intermediary method_12611 Lnet/minecraft/class_2905;method_12611()Ljava/security/PublicKey;
      named getPublicKey Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;getPublicKey()Ljava/security/PublicKey;
    • getNonce

      @Environment(CLIENT) public byte[] getNonce()
      Mappings:
      Namespace Name Mixin selector
      official d Lut;d()[B
      intermediary method_12613 Lnet/minecraft/class_2905;method_12613()[B
      named getNonce Lnet/minecraft/network/packet/s2c/login/LoginHelloS2CPacket;getNonce()[B