Java 类net.minecraft.network.login.server.S02PacketLoginSuccess 实例源码

项目:Resilience-Client-Source    文件:NetHandlerLoginServer.java   
public void func_147326_c()
{
    if (!this.field_147337_i.isComplete())
    {
        UUID var1 = UUID.nameUUIDFromBytes(("OfflinePlayer:" + this.field_147337_i.getName()).getBytes(Charsets.UTF_8));
        this.field_147337_i = new GameProfile(var1.toString().replaceAll("-", ""), this.field_147337_i.getName());
    }

    String var2 = this.field_147327_f.getConfigurationManager().func_148542_a(this.field_147333_a.getSocketAddress(), this.field_147337_i);

    if (var2 != null)
    {
        this.func_147322_a(var2);
    }
    else
    {
        this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED;
        this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]);
        this.field_147327_f.getConfigurationManager().initializeConnectionToPlayer(this.field_147333_a, this.field_147327_f.getConfigurationManager().func_148545_a(this.field_147337_i));
    }
}
项目:Cauldron    文件:NetHandlerLoginServer.java   
public void func_147326_c()
{
    // Spigot start - Moved to initUUID
    /*
    if (!this.field_147337_i.isComplete())
    {
        this.field_147337_i = this.func_152506_a(this.field_147337_i);
    }
    */
    // Spigot end

    // CraftBukkit start - fire PlayerLoginEvent
    EntityPlayerMP s = this.field_147327_f.getConfigurationManager().attemptLogin(this, this.field_147337_i, this.hostname);

    if (s == null)
    {
        // this.func_147322_a(s);
        // CraftBukkit end
    }
    else
    {
        this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED;
        this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]);
        FMLNetworkHandler.fmlServerHandshake(this.field_147327_f.getConfigurationManager(), this.field_147333_a, this.field_147327_f.getConfigurationManager().processLogin(this.field_147337_i, s)); // CraftBukkit - add player reference
    }
}
项目:Cauldron    文件:NetHandlerLoginServer.java   
public void func_147326_c()
{
    if (!this.field_147337_i.isComplete())
    {
        this.field_147337_i = this.func_152506_a(this.field_147337_i);
    }

    String s = this.field_147327_f.getConfigurationManager().allowUserToConnect(this.field_147333_a.getSocketAddress(), this.field_147337_i);

    if (s != null)
    {
        this.func_147322_a(s);
    }
    else
    {
        this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED;
        this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]);
        FMLNetworkHandler.fmlServerHandshake(this.field_147327_f.getConfigurationManager(), this.field_147333_a, this.field_147327_f.getConfigurationManager().createPlayerForUser(this.field_147337_i));
    }
}
项目:DecompiledMinecraft    文件:NetHandlerLoginServer.java   
public void tryAcceptPlayer()
{
    if (!this.loginGameProfile.isComplete())
    {
        this.loginGameProfile = this.getOfflineProfile(this.loginGameProfile);
    }

    String s = this.server.getConfigurationManager().allowUserToConnect(this.networkManager.getRemoteAddress(), this.loginGameProfile);

    if (s != null)
    {
        this.closeConnection(s);
    }
    else
    {
        this.currentLoginState = NetHandlerLoginServer.LoginState.ACCEPTED;

        if (this.server.getNetworkCompressionTreshold() >= 0 && !this.networkManager.isLocalChannel())
        {
            this.networkManager.sendPacket(new S03PacketEnableCompression(this.server.getNetworkCompressionTreshold()), new ChannelFutureListener()
            {
                public void operationComplete(ChannelFuture p_operationComplete_1_) throws Exception
                {
                    NetHandlerLoginServer.this.networkManager.setCompressionTreshold(NetHandlerLoginServer.this.server.getNetworkCompressionTreshold());
                }
            }, new GenericFutureListener[0]);
        }

        this.networkManager.sendPacket(new S02PacketLoginSuccess(this.loginGameProfile));
        EntityPlayerMP entityplayermp = this.server.getConfigurationManager().getPlayerByUUID(this.loginGameProfile.getId());

        if (entityplayermp != null)
        {
            this.currentLoginState = NetHandlerLoginServer.LoginState.DELAY_ACCEPT;
            this.field_181025_l = this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile);
        }
        else
        {
            this.server.getConfigurationManager().initializeConnectionToPlayer(this.networkManager, this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile));
        }
    }
}
项目:DecompiledMinecraft    文件:NetHandlerLoginClient.java   
public void handleLoginSuccess(S02PacketLoginSuccess packetIn)
{
    this.gameProfile = packetIn.getProfile();
    this.networkManager.setConnectionState(EnumConnectionState.PLAY);
    this.networkManager.setNetHandler(new NetHandlerPlayClient(this.mc, this.previousGuiScreen, this.networkManager, this.gameProfile));
}
项目:DecompiledMinecraft    文件:NetHandlerLoginServer.java   
public void tryAcceptPlayer()
{
    if (!this.loginGameProfile.isComplete())
    {
        this.loginGameProfile = this.getOfflineProfile(this.loginGameProfile);
    }

    String s = this.server.getConfigurationManager().allowUserToConnect(this.networkManager.getRemoteAddress(), this.loginGameProfile);

    if (s != null)
    {
        this.closeConnection(s);
    }
    else
    {
        this.currentLoginState = NetHandlerLoginServer.LoginState.ACCEPTED;

        if (this.server.getNetworkCompressionTreshold() >= 0 && !this.networkManager.isLocalChannel())
        {
            this.networkManager.sendPacket(new S03PacketEnableCompression(this.server.getNetworkCompressionTreshold()), new ChannelFutureListener()
            {
                public void operationComplete(ChannelFuture p_operationComplete_1_) throws Exception
                {
                    NetHandlerLoginServer.this.networkManager.setCompressionTreshold(NetHandlerLoginServer.this.server.getNetworkCompressionTreshold());
                }
            }, new GenericFutureListener[0]);
        }

        this.networkManager.sendPacket(new S02PacketLoginSuccess(this.loginGameProfile));
        EntityPlayerMP entityplayermp = this.server.getConfigurationManager().getPlayerByUUID(this.loginGameProfile.getId());

        if (entityplayermp != null)
        {
            this.currentLoginState = NetHandlerLoginServer.LoginState.DELAY_ACCEPT;
            this.field_181025_l = this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile);
        }
        else
        {
            this.server.getConfigurationManager().initializeConnectionToPlayer(this.networkManager, this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile));
        }
    }
}
项目:BaseClient    文件:NetHandlerLoginClient.java   
public void handleLoginSuccess(S02PacketLoginSuccess packetIn)
{
    this.gameProfile = packetIn.getProfile();
    this.networkManager.setConnectionState(EnumConnectionState.PLAY);
    this.networkManager.setNetHandler(new NetHandlerPlayClient(this.mc, this.previousGuiScreen, this.networkManager, this.gameProfile));
}
项目:BaseClient    文件:NetHandlerLoginServer.java   
public void tryAcceptPlayer()
{
    if (!this.loginGameProfile.isComplete())
    {
        this.loginGameProfile = this.getOfflineProfile(this.loginGameProfile);
    }

    String s = this.server.getConfigurationManager().allowUserToConnect(this.networkManager.getRemoteAddress(), this.loginGameProfile);

    if (s != null)
    {
        this.closeConnection(s);
    }
    else
    {
        this.currentLoginState = NetHandlerLoginServer.LoginState.ACCEPTED;

        if (this.server.getNetworkCompressionTreshold() >= 0 && !this.networkManager.isLocalChannel())
        {
            this.networkManager.sendPacket(new S03PacketEnableCompression(this.server.getNetworkCompressionTreshold()), new ChannelFutureListener()
            {
                public void operationComplete(ChannelFuture p_operationComplete_1_) throws Exception
                {
                    NetHandlerLoginServer.this.networkManager.setCompressionTreshold(NetHandlerLoginServer.this.server.getNetworkCompressionTreshold());
                }
            }, new GenericFutureListener[0]);
        }

        this.networkManager.sendPacket(new S02PacketLoginSuccess(this.loginGameProfile));
        EntityPlayerMP entityplayermp = this.server.getConfigurationManager().getPlayerByUUID(this.loginGameProfile.getId());

        if (entityplayermp != null)
        {
            this.currentLoginState = NetHandlerLoginServer.LoginState.DELAY_ACCEPT;
            this.field_181025_l = this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile);
        }
        else
        {
            this.server.getConfigurationManager().initializeConnectionToPlayer(this.networkManager, this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile));
        }
    }
}
项目:BaseClient    文件:NetHandlerLoginClient.java   
public void handleLoginSuccess(S02PacketLoginSuccess packetIn)
{
    this.gameProfile = packetIn.getProfile();
    this.networkManager.setConnectionState(EnumConnectionState.PLAY);
    this.networkManager.setNetHandler(new NetHandlerPlayClient(this.mc, this.previousGuiScreen, this.networkManager, this.gameProfile));
}
项目:BaseClient    文件:NetHandlerLoginServer.java   
public void tryAcceptPlayer()
{
    if (!this.loginGameProfile.isComplete())
    {
        this.loginGameProfile = this.getOfflineProfile(this.loginGameProfile);
    }

    String s = this.server.getConfigurationManager().allowUserToConnect(this.networkManager.getRemoteAddress(), this.loginGameProfile);

    if (s != null)
    {
        this.closeConnection(s);
    }
    else
    {
        this.currentLoginState = NetHandlerLoginServer.LoginState.ACCEPTED;

        if (this.server.getNetworkCompressionTreshold() >= 0 && !this.networkManager.isLocalChannel())
        {
            this.networkManager.sendPacket(new S03PacketEnableCompression(this.server.getNetworkCompressionTreshold()), new ChannelFutureListener()
            {
                public void operationComplete(ChannelFuture p_operationComplete_1_) throws Exception
                {
                    NetHandlerLoginServer.this.networkManager.setCompressionTreshold(NetHandlerLoginServer.this.server.getNetworkCompressionTreshold());
                }
            }, new GenericFutureListener[0]);
        }

        this.networkManager.sendPacket(new S02PacketLoginSuccess(this.loginGameProfile));
        EntityPlayerMP entityplayermp = this.server.getConfigurationManager().getPlayerByUUID(this.loginGameProfile.getId());

        if (entityplayermp != null)
        {
            this.currentLoginState = NetHandlerLoginServer.LoginState.DELAY_ACCEPT;
            this.field_181025_l = this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile);
        }
        else
        {
            this.server.getConfigurationManager().initializeConnectionToPlayer(this.networkManager, this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile));
        }
    }
}
项目:Resilience-Client-Source    文件:NetHandlerLoginClient.java   
public void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_)
{
    this.field_147393_d.setConnectionState(EnumConnectionState.PLAY);
}
项目:Cauldron    文件:NetHandlerLoginClient.java   
public void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_)
{
    FMLNetworkHandler.fmlClientHandshake(this.field_147393_d);
}
项目:Cauldron    文件:NetHandlerLoginClient.java   
public void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_)
{
    FMLNetworkHandler.fmlClientHandshake(this.field_147393_d);
}
项目:Protocol4    文件:LoginSuccess_4.java   
@Override
public Class<? extends Packet> getPacket() {
    return S02PacketLoginSuccess.class;
}
项目:DecompiledMinecraft    文件:INetHandlerLoginClient.java   
void handleLoginSuccess(S02PacketLoginSuccess packetIn);
项目:DecompiledMinecraft    文件:INetHandlerLoginClient.java   
void handleLoginSuccess(S02PacketLoginSuccess packetIn);
项目:BaseClient    文件:INetHandlerLoginClient.java   
void handleLoginSuccess(S02PacketLoginSuccess packetIn);
项目:BaseClient    文件:INetHandlerLoginClient.java   
void handleLoginSuccess(S02PacketLoginSuccess packetIn);
项目:Resilience-Client-Source    文件:INetHandlerLoginClient.java   
void handleLoginSuccess(S02PacketLoginSuccess var1);
项目:Cauldron    文件:INetHandlerLoginClient.java   
void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_);
项目:Cauldron    文件:INetHandlerLoginClient.java   
void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_);