Class LoginHelloC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.login.LoginHelloC2SPacket
- All Implemented Interfaces:
Packet<ServerLoginPacketListener>
public class LoginHelloC2SPacket extends Object implements Packet<ServerLoginPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.authlib.GameProfileprofile -
Constructor Summary
Constructors Constructor Description LoginHelloC2SPacket()LoginHelloC2SPacket(com.mojang.authlib.GameProfile profile) -
Method Summary
Modifier and Type Method Description voidapply(ServerLoginPacketListener serverLoginPacketListener)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
-
LoginHelloC2SPacket
public LoginHelloC2SPacket() -
LoginHelloC2SPacket
public LoginHelloC2SPacket(com.mojang.authlib.GameProfile profile)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerLoginPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerLoginPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ServerLoginPacketListener>
-
getProfile
public com.mojang.authlib.GameProfile getProfile()
-