Class LoginSuccessS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.login.LoginSuccessS2CPacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
- Mappings:
Namespace Name official afointermediary net/minecraft/class_2901named net/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientLoginPacketListener clientLoginPacketListener) Returns a new network state to transition to, ornullto indicate no state change.com.mojang.authlib.GameProfilevoidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable
-
Field Details
-
profile
private final com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector official aLafo;a:Lcom/mojang/authlib/GameProfile;intermediary field_13190Lnet/minecraft/class_2901;field_13190:Lcom/mojang/authlib/GameProfile;named profileLnet/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>Lafo;<init>(Lcom/mojang/authlib/GameProfile;)Vintermediary <init>Lnet/minecraft/class_2901;<init>(Lcom/mojang/authlib/GameProfile;)Vnamed <init>Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;<init>(Lcom/mojang/authlib/GameProfile;)V
-
LoginSuccessS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lafo;<init>(Lui;)Vintermediary <init>Lnet/minecraft/class_2901;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientLoginPacketListener>- Mappings:
Namespace Name Mixin selector official aLxf;a(Lui;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientLoginPacketListener>- Mappings:
Namespace Name Mixin selector official aLafo;a(Lafm;)Vintermediary method_12594Lnet/minecraft/class_2901;method_12594(Lnet/minecraft/class_2896;)Vnamed applyLnet/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 aLafo;a()Lcom/mojang/authlib/GameProfile;intermediary method_12593Lnet/minecraft/class_2901;method_12593()Lcom/mojang/authlib/GameProfile;named getProfileLnet/minecraft/network/packet/s2c/login/LoginSuccessS2CPacket;getProfile()Lcom/mojang/authlib/GameProfile;
-
getNewNetworkState
Returns a new network state to transition to, ornullto 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:
getNewNetworkStatein interfacePacket<ClientLoginPacketListener>- Returns:
- a new network state to transition to, or
nullto indicate no state change - Mappings:
Namespace Name Mixin selector official cLxf;c()Luh;intermediary method_52273Lnet/minecraft/class_2596;method_52273()Lnet/minecraft/class_2539;named getNewNetworkStateLnet/minecraft/network/packet/Packet;getNewNetworkState()Lnet/minecraft/network/NetworkState;
-