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>
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.authlib.GameProfileprofile -
Constructor Summary
Constructors Constructor Description LoginSuccessS2CPacket()LoginSuccessS2CPacket(com.mojang.authlib.GameProfile profile) -
Method Summary
Modifier and Type Method Description voidapply(ClientLoginPacketListener clientLoginPacketListener)com.mojang.authlib.GameProfilegetProfile()voidread(PacketByteBuf buf)voidwrite(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
isWritingErrorSkippable
-
Field Details
-
profile
private com.mojang.authlib.GameProfile profile
-
-
Constructor Details
-
LoginSuccessS2CPacket
public LoginSuccessS2CPacket() -
LoginSuccessS2CPacket
public LoginSuccessS2CPacket(com.mojang.authlib.GameProfile profile)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientLoginPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientLoginPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientLoginPacketListener>
-
getProfile
@Environment(CLIENT) public com.mojang.authlib.GameProfile getProfile()
-