package net.minecraft.server;
import com.mojang.authlib.GameProfile;
import java.io.IOException;
import java.util.UUID;
public class PacketLoginOutSuccess implements Packet<PacketLoginOutListener> {
private GameProfile a;
public PacketLoginOutSuccess() {}
public PacketLoginOutSuccess(GameProfile gameprofile) {
this.a = gameprofile;
}
@Override
public void a(PacketDataSerializer packetdataserializer) throws IOException {
String s = packetdataserializer.e(36);
String s1 = packetdataserializer.e(16);
UUID uuid = UUID.fromString(s);
this.a = new GameProfile(uuid, s1);
}
@Override
public void b(PacketDataSerializer packetdataserializer) throws IOException {
UUID uuid = this.a.getId();
packetdataserializer.a(uuid == null ? "" : uuid.toString());
packetdataserializer.a(this.a.getName());
}
public void a(PacketLoginOutListener packetloginoutlistener) {
packetloginoutlistener.a(this);
}
}