Package net.minecraft.server

Source Code of net.minecraft.server.PacketLoginInStart

package net.minecraft.server;

import java.util.UUID;

import net.minecraft.util.com.mojang.authlib.GameProfile;

public class PacketLoginInStart extends Packet {

    private GameProfile a;

    public PacketLoginInStart() {}

    public PacketLoginInStart(GameProfile gameprofile) {
        this.a = gameprofile;
    }

    public void a(PacketDataSerializer packetdataserializer) {
        this.a = new GameProfile((UUID) null, packetdataserializer.c(16));
    }

    public void b(PacketDataSerializer packetdataserializer) {
        packetdataserializer.a(this.a.getName());
    }

    public void a(PacketLoginInListener packetlogininlistener) {
        packetlogininlistener.a(this);
    }

    public GameProfile c() {
        return this.a;
    }

    public void handle(PacketListener packetlistener) {
        this.a((PacketLoginInListener) packetlistener);
    }
}
TOP

Related Classes of net.minecraft.server.PacketLoginInStart

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.