Class LoginSuccessS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.login.LoginSuccessS2CPacket
All Implemented Interfaces:
Packet<ClientLoginPacketListener>

public class LoginSuccessS2CPacket extends Object implements Packet<ClientLoginPacketListener>
Mappings:
Namespace Name
official adg
intermediary net/minecraft/class_2901
named net/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket
  • Field Details

    • profile

      private final com.mojang.authlib.GameProfile profile
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a:Lcom/mojang/authlib/GameProfile;
      intermediary field_13190 Lnet/minecraft/class_2901;field_13190:Lcom/mojang/authlib/GameProfile;
      named profile Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;profile:Lcom/mojang/authlib/GameProfile;
  • Constructor Details

    • LoginSuccessS2CPacket

      public LoginSuccessS2CPacket(com.mojang.authlib.GameProfile profile)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladg;<init>(Lcom/mojang/authlib/GameProfile;)V
      intermediary <init> Lnet/minecraft/class_2901;<init>(Lcom/mojang/authlib/GameProfile;)V
      named <init> Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;<init>(Lcom/mojang/authlib/GameProfile;)V
    • LoginSuccessS2CPacket

      public LoginSuccessS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladg;<init>(Lso;)V
      intermediary <init> Lnet/minecraft/class_2901;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientLoginPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvd;a(Lso;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/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 Ladg;a(Lade;)V
      intermediary method_12594 Lnet/minecraft/class_2901;method_12594(Lnet/minecraft/class_2896;)V
      named apply Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;apply(Lnet/minecraft/network/listener/ClientLoginPacketListener;)V
    • getProfile

      public com.mojang.authlib.GameProfile getProfile()
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a()Lcom/mojang/authlib/GameProfile;
      intermediary method_12593 Lnet/minecraft/class_2901;method_12593()Lcom/mojang/authlib/GameProfile;
      named getProfile Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;getProfile()Lcom/mojang/authlib/GameProfile;
    • getNewNetworkState

      public NetworkState getNewNetworkState()
      Returns a new network state to transition to, or null to indicate no state change.

      The state transition is done on both the sender and receiver sides, but it is only in one direction (out of C2S and S2C). Another packet must be processed in the reverse direction to ensure the state in both directions are updated.

      Specified by:
      getNewNetworkState in interface Packet<ClientLoginPacketListener>
      Returns:
      a new network state to transition to, or null to indicate no state change
      Mappings:
      Namespace Name Mixin selector
      official c Lvd;c()Lsn;
      intermediary method_52273 Lnet/minecraft/class_2596;method_52273()Lnet/minecraft/class_2539;
      named getNewNetworkState Lnet/minecraft/network/packet/Packet;getNewNetworkState()Lnet/minecraft/network/NetworkState;