Java 类net.minecraft.client.network.OldServerPinger 实例源码

项目:TRHS_Club_Mod_2016    文件:FMLClientHandler.java   
public void connectToServerAtStartup(String host, int port)
{
    setupServerList();
    OldServerPinger osp = new OldServerPinger();
    ServerData serverData = new ServerData("Command Line", host+":"+port);
    try
    {
        osp.func_147224_a(serverData);
        startupConnectionData.await(30, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
        showGuiScreen(new GuiConnecting(new GuiMainMenu(), client, host, port));
        return;
    }
    connectToServer(new GuiMainMenu(), serverData);
}
项目:EvenWurse    文件:ServerPinger.java   
public void ping(final String ip, final int port) {
    server = new ServerData("", ip + ":" + port);
    new Thread("Wurst Server Connector #" + threadNumber.incrementAndGet()) {
        @Override
        public void run() {
            OldServerPinger pinger = new OldServerPinger();
            try {
                logger.info("Pinging " + ip + ":" + port + "...");
                pinger.ping(server);
                logger.info("Ping successful: " + ip + ":" + port);
            } catch (UnknownHostException e) {
                logger.info("Unknown host: " + ip + ":" + port);
                failed = true;
            } catch (Exception e2) {
                logger.info("Ping failed: " + ip + ":" + port);
                failed = true;
            }
            pinger.clearPendingNetworks();
            done = true;
        }
    }.start();
}
项目:CauldronGit    文件:FMLClientHandler.java   
public void connectToServerAtStartup(String host, int port)
{
    setupServerList();
    OldServerPinger osp = new OldServerPinger();
    ServerData serverData = new ServerData("Command Line", host+":"+port);
    try
    {
        osp.func_147224_a(serverData);
        startupConnectionData.await(30, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
        showGuiScreen(new GuiConnecting(new GuiMainMenu(), client, host, port));
        return;
    }
    connectToServer(new GuiMainMenu(), serverData);
}
项目:Cauldron    文件:FMLClientHandler.java   
public void connectToServerAtStartup(String host, int port)
{
    setupServerList();
    OldServerPinger osp = new OldServerPinger();
    ServerData serverData = new ServerData("Command Line", host+":"+port);
    try
    {
        osp.func_147224_a(serverData);
        startupConnectionData.await(30, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
        showGuiScreen(new GuiConnecting(new GuiMainMenu(), client, host, port));
        return;
    }
    connectToServer(new GuiMainMenu(), serverData);
}
项目:Cauldron    文件:FMLClientHandler.java   
public void connectToServerAtStartup(String host, int port)
{
    setupServerList();
    OldServerPinger osp = new OldServerPinger();
    ServerData serverData = new ServerData("Command Line", host+":"+port);
    try
    {
        osp.func_147224_a(serverData);
        startupConnectionData.await(30, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
        showGuiScreen(new GuiConnecting(new GuiMainMenu(), client, host, port));
        return;
    }
    connectToServer(new GuiMainMenu(), serverData);
}
项目:Cauldron    文件:FMLClientHandler.java   
public void connectToServerAtStartup(String host, int port)
{
    setupServerList();
    OldServerPinger osp = new OldServerPinger();
    ServerData serverData = new ServerData("Command Line", host+":"+port);
    try
    {
        osp.func_147224_a(serverData);
        startupConnectionData.await(30, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
        showGuiScreen(new GuiConnecting(new GuiMainMenu(), client, host, port));
        return;
    }
    connectToServer(new GuiMainMenu(), serverData);
}
项目:BaseClient    文件:NetworkUtils.java   
public NetworkUtils() {
    this.pinger = new OldServerPinger();
    this.mc = Minecraft.getMinecraft();
    this.timer = new Timer();
    EventManager.register(this);
    final PingThread pingThread = new PingThread();
    pingThread.start();
}
项目:DecompiledMinecraft    文件:GuiMultiplayer.java   
public OldServerPinger getOldServerPinger()
{
    return this.oldServerPinger;
}
项目:BaseClient    文件:GuiMultiplayer.java   
public OldServerPinger getOldServerPinger()
{
    return this.oldServerPinger;
}
项目:BaseClient    文件:GuiMultiplayer.java   
public OldServerPinger getOldServerPinger()
{
    return this.oldServerPinger;
}
项目:Resilience-Client-Source    文件:GuiMultiplayer.java   
public OldServerPinger func_146789_i()
{
    return this.field_146797_f;
}
项目:Cauldron    文件:GuiMultiplayer.java   
public OldServerPinger func_146789_i()
{
    return this.field_146797_f;
}
项目:Cauldron    文件:GuiMultiplayer.java   
public OldServerPinger func_146789_i()
{
    return this.field_146797_f;
}