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

项目:CreeperHostGui    文件:GuiMultiplayerPublic.java   
private void setLanServerDetector(LanServerDetector.ThreadLanServerFind detector)
{
    ourLanServerDetector = detector;
    if (lanServerDetectorField == null)
    {
        lanServerDetectorField = ReflectionHelper.findField(GuiMultiplayer.class, "field_146800_B", "lanServerDetector");
        lanServerDetectorField.setAccessible(true);
    }

    try
    {
        lanServerDetectorField.set(this, detector);
    }
    catch (IllegalAccessException e)
    {
        CreeperHost.logger.error("Unable to set server list", e);
    }
}
项目:CreeperHostGui    文件:GuiMultiplayerPublic.java   
private void setLanServerList(LanServerDetector.LanServerList detector)
{
    ourLanServerList = detector;
    if (lanServerListField == null)
    {
        lanServerListField = ReflectionHelper.findField(GuiMultiplayer.class, "field_146799_A", "lanServerList");
        lanServerListField.setAccessible(true);
    }

    try
    {
        lanServerListField.set(this, detector);
    }
    catch (IllegalAccessException e)
    {
        CreeperHost.logger.error("Unable to set server list", e);
    }
}
项目:CreeperHostGui    文件:GuiMultiplayerPublic.java   
private void setLanServerDetector(LanServerDetector.ThreadLanServerFind detector)
{
    ourLanServerDetector = detector;
    if (lanServerDetectorField == null)
    {
        lanServerDetectorField = ReflectionHelper.findField(GuiMultiplayer.class, "field_146800_B", "lanServerDetector");
        lanServerDetectorField.setAccessible(true);
    }

    try
    {
        lanServerDetectorField.set(this, detector);
    }
    catch (IllegalAccessException e)
    {
        CreeperHost.logger.error("Unable to set server list", e);
    }
}
项目:CreeperHostGui    文件:GuiMultiplayerPublic.java   
private void setLanServerList(LanServerDetector.LanServerList detector)
{
    ourLanServerList = detector;
    if (lanServerListField == null)
    {
        lanServerListField = ReflectionHelper.findField(GuiMultiplayer.class, "field_146799_A", "lanServerList");
        lanServerListField.setAccessible(true);
    }

    try
    {
        lanServerListField.set(this, detector);
    }
    catch (IllegalAccessException e)
    {
        CreeperHost.logger.error("Unable to set server list", e);
    }
}
项目:CreeperHostGui    文件:GuiMultiplayerPublic.java   
@Override
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (this.initialized)
    {
        this.ourServerListSelector.func_148122_a(this.width, this.height, 32, this.height - 64);
    }
    else
    {
        this.initialized = true;
        setServerList(new ServerListPublic(this.mc, this));
        ourSavedServerList.loadServerList();
        setLanServerList(new LanServerDetector.LanServerList());

        try
        {
            setLanServerDetector(new LanServerDetector.ThreadLanServerFind(this.ourLanServerList));
            ourLanServerDetector.start();
        }
        catch (Exception exception)
        {
        }

        setServerListSelector(new ServerSelectionListPublic(this, this.mc, this.width, this.height, 32, this.height - 64, 46));
        ourServerListSelector.func_148195_a(this.ourSavedServerList);
    }

    this.func_146794_g();
}
项目:CreeperHostGui    文件:GuiMultiplayerPublic.java   
@Override
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (this.initialized)
    {
        this.ourServerListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
    }
    else
    {
        this.initialized = true;
        setServerList(new ServerListPublic(this.mc, this));
        ourSavedServerList.loadServerList();
        setLanServerList(new LanServerDetector.LanServerList());

        try
        {
            setLanServerDetector(new LanServerDetector.ThreadLanServerFind(this.ourLanServerList));
            ourLanServerDetector.start();
        }
        catch (Exception exception)
        {
        }

        setServerListSelector(new ServerSelectionListPublic(this, this.mc, this.width, this.height, 32, this.height - 64, 46));
        ourServerListSelector.updateOnlineServers(this.ourSavedServerList);
    }

    this.createButtons();
}
项目:DecompiledMinecraft    文件:ServerSelectionList.java   
public void func_148194_a(List<LanServerDetector.LanServer> p_148194_1_)
{
    this.field_148199_m.clear();

    for (LanServerDetector.LanServer lanserverdetector$lanserver : p_148194_1_)
    {
        this.field_148199_m.add(new ServerListEntryLanDetected(this.owner, lanserverdetector$lanserver));
    }
}
项目:DecompiledMinecraft    文件:GuiMultiplayer.java   
/**
 * Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the
 * window resizes, the buttonList is cleared beforehand.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (!this.initialized)
    {
        this.initialized = true;
        this.savedServerList = new ServerList(this.mc);
        this.savedServerList.loadServerList();
        this.lanServerList = new LanServerDetector.LanServerList();

        try
        {
            this.lanServerDetector = new LanServerDetector.ThreadLanServerFind(this.lanServerList);
            this.lanServerDetector.start();
        }
        catch (Exception exception)
        {
            logger.warn("Unable to start LAN server detection: " + exception.getMessage());
        }

        this.serverListSelector = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.serverListSelector.func_148195_a(this.savedServerList);
    }
    else
    {
        this.serverListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
    }

    this.createButtons();
}
项目:DecompiledMinecraft    文件:GuiMultiplayer.java   
/**
 * Called from the main game loop to update the screen.
 */
public void updateScreen()
{
    super.updateScreen();

    if (this.lanServerList.getWasUpdated())
    {
        List<LanServerDetector.LanServer> list = this.lanServerList.getLanServers();
        this.lanServerList.setWasNotUpdated();
        this.serverListSelector.func_148194_a(list);
    }

    this.oldServerPinger.pingPendingNetworks();
}
项目:DecompiledMinecraft    文件:GuiMultiplayer.java   
public void connectToSelected()
{
    GuiListExtended.IGuiListEntry guilistextended$iguilistentry = this.serverListSelector.func_148193_k() < 0 ? null : this.serverListSelector.getListEntry(this.serverListSelector.func_148193_k());

    if (guilistextended$iguilistentry instanceof ServerListEntryNormal)
    {
        this.connectToServer(((ServerListEntryNormal)guilistextended$iguilistentry).getServerData());
    }
    else if (guilistextended$iguilistentry instanceof ServerListEntryLanDetected)
    {
        LanServerDetector.LanServer lanserverdetector$lanserver = ((ServerListEntryLanDetected)guilistextended$iguilistentry).getLanServer();
        this.connectToServer(new ServerData(lanserverdetector$lanserver.getServerMotd(), lanserverdetector$lanserver.getServerIpPort(), true));
    }
}
项目:BaseClient    文件:ServerSelectionList.java   
public void func_148194_a(List<LanServerDetector.LanServer> p_148194_1_)
{
    this.field_148199_m.clear();

    for (LanServerDetector.LanServer lanserverdetector$lanserver : p_148194_1_)
    {
        this.field_148199_m.add(new ServerListEntryLanDetected(this.owner, lanserverdetector$lanserver));
    }
}
项目:BaseClient    文件:GuiMultiplayer.java   
/**
 * Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the
 * window resizes, the buttonList is cleared beforehand.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (!this.initialized)
    {
        this.initialized = true;
        this.savedServerList = new ServerList(this.mc);
        this.savedServerList.loadServerList();
        this.lanServerList = new LanServerDetector.LanServerList();

        try
        {
            this.lanServerDetector = new LanServerDetector.ThreadLanServerFind(this.lanServerList);
            this.lanServerDetector.start();
        }
        catch (Exception exception)
        {
            logger.warn("Unable to start LAN server detection: " + exception.getMessage());
        }

        this.serverListSelector = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.serverListSelector.func_148195_a(this.savedServerList);
    }
    else
    {
        this.serverListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
    }

    this.createButtons();
}
项目:BaseClient    文件:GuiMultiplayer.java   
/**
 * Called from the main game loop to update the screen.
 */
public void updateScreen()
{
    super.updateScreen();

    if (this.lanServerList.getWasUpdated())
    {
        List<LanServerDetector.LanServer> list = this.lanServerList.getLanServers();
        this.lanServerList.setWasNotUpdated();
        this.serverListSelector.func_148194_a(list);
    }

    this.oldServerPinger.pingPendingNetworks();
}
项目:BaseClient    文件:GuiMultiplayer.java   
public void connectToSelected()
{
    GuiListExtended.IGuiListEntry guilistextended$iguilistentry = this.serverListSelector.func_148193_k() < 0 ? null : this.serverListSelector.getListEntry(this.serverListSelector.func_148193_k());

    if (guilistextended$iguilistentry instanceof ServerListEntryNormal)
    {
        this.connectToServer(((ServerListEntryNormal)guilistextended$iguilistentry).getServerData());
    }
    else if (guilistextended$iguilistentry instanceof ServerListEntryLanDetected)
    {
        LanServerDetector.LanServer lanserverdetector$lanserver = ((ServerListEntryLanDetected)guilistextended$iguilistentry).getLanServer();
        this.connectToServer(new ServerData(lanserverdetector$lanserver.getServerMotd(), lanserverdetector$lanserver.getServerIpPort(), true));
    }
}
项目:BaseClient    文件:ServerSelectionList.java   
public void func_148194_a(List<LanServerDetector.LanServer> p_148194_1_)
{
    this.field_148199_m.clear();

    for (LanServerDetector.LanServer lanserverdetector$lanserver : p_148194_1_)
    {
        this.field_148199_m.add(new ServerListEntryLanDetected(this.owner, lanserverdetector$lanserver));
    }
}
项目:BaseClient    文件:GuiMultiplayer.java   
/**
 * Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the
 * window resizes, the buttonList is cleared beforehand.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (!this.initialized)
    {
        this.initialized = true;
        this.savedServerList = new ServerList(this.mc);
        this.savedServerList.loadServerList();
        this.lanServerList = new LanServerDetector.LanServerList();

        try
        {
            this.lanServerDetector = new LanServerDetector.ThreadLanServerFind(this.lanServerList);
            this.lanServerDetector.start();
        }
        catch (Exception exception)
        {
            logger.warn("Unable to start LAN server detection: " + exception.getMessage());
        }

        this.serverListSelector = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.serverListSelector.func_148195_a(this.savedServerList);
    }
    else
    {
        this.serverListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
    }

    this.createButtons();
}
项目:BaseClient    文件:GuiMultiplayer.java   
/**
 * Called from the main game loop to update the screen.
 */
public void updateScreen()
{
    super.updateScreen();

    if (this.lanServerList.getWasUpdated())
    {
        List<LanServerDetector.LanServer> list = this.lanServerList.getLanServers();
        this.lanServerList.setWasNotUpdated();
        this.serverListSelector.func_148194_a(list);
    }

    this.oldServerPinger.pingPendingNetworks();
}
项目:BaseClient    文件:GuiMultiplayer.java   
public void connectToSelected()
{
    GuiListExtended.IGuiListEntry guilistextended$iguilistentry = this.serverListSelector.func_148193_k() < 0 ? null : this.serverListSelector.getListEntry(this.serverListSelector.func_148193_k());

    if (guilistextended$iguilistentry instanceof ServerListEntryNormal)
    {
        this.connectToServer(((ServerListEntryNormal)guilistextended$iguilistentry).getServerData());
    }
    else if (guilistextended$iguilistentry instanceof ServerListEntryLanDetected)
    {
        LanServerDetector.LanServer lanserverdetector$lanserver = ((ServerListEntryLanDetected)guilistextended$iguilistentry).getLanServer();
        this.connectToServer(new ServerData(lanserverdetector$lanserver.getServerMotd(), lanserverdetector$lanserver.getServerIpPort(), true));
    }
}
项目:Backmemed    文件:GuiMultiplayer.java   
/**
 * Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the
 * window resizes, the buttonList is cleared beforehand.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (this.initialized)
    {
        this.serverListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
    }
    else
    {
        this.initialized = true;
        this.savedServerList = new ServerList(this.mc);
        this.savedServerList.loadServerList();
        this.lanServerList = new LanServerDetector.LanServerList();

        try
        {
            this.lanServerDetector = new LanServerDetector.ThreadLanServerFind(this.lanServerList);
            this.lanServerDetector.start();
        }
        catch (Exception exception)
        {
            LOGGER.warn("Unable to start LAN server detection: {}", new Object[] {exception.getMessage()});
        }

        this.serverListSelector = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.serverListSelector.updateOnlineServers(this.savedServerList);
    }

    this.createButtons();
}
项目:CustomWorldGen    文件:GuiMultiplayer.java   
/**
 * Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the
 * window resizes, the buttonList is cleared beforehand.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (this.initialized)
    {
        this.serverListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
    }
    else
    {
        this.initialized = true;
        this.savedServerList = new ServerList(this.mc);
        this.savedServerList.loadServerList();
        this.lanServerList = new LanServerDetector.LanServerList();

        try
        {
            this.lanServerDetector = new LanServerDetector.ThreadLanServerFind(this.lanServerList);
            this.lanServerDetector.start();
        }
        catch (Exception exception)
        {
            LOGGER.warn("Unable to start LAN server detection: {}", new Object[] {exception.getMessage()});
        }

        this.serverListSelector = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.serverListSelector.updateOnlineServers(this.savedServerList);
    }

    this.createButtons();
}
项目:Coherence    文件:CoherenceSSL.java   
public void updateServerList(List<LanServerDetector.LanServer> lanServerList)
{
    this.sleldList.clear();

    for (LanServerDetector.LanServer lanServer : lanServerList)
    {
        this.sleldList.add(new CoherenceSLELD(this.owner, lanServer));
    }
}
项目:Coherence    文件:UiMultiplayer.java   
/**
 * Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the
 * window resizes, the buttonList is cleared beforehand.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (!this.initialized)
    {
        this.initialized = true;
        this.savedServerList = new ServerList(this.mc);
        this.savedServerList.loadServerList();
        this.lanServerList = new LanServerDetector.LanServerList();

        try
        {
            this.lanServerDetector = new LanServerDetector.ThreadLanServerFind(this.lanServerList);
            this.lanServerDetector.start();
        }
        catch (Exception exception)
        {
            logger.warn("Unable to start LAN server detection: " + exception.getMessage());
        }

        this.serverListSelector = new CoherenceSSL(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.serverListSelector.updateServerList(this.savedServerList);
    }
    else
    {
        this.serverListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
    }

    this.createButtons();
}
项目:Coherence    文件:UiMultiplayer.java   
/**
 * Called from the main game loop to update the screen.
 */
public void updateScreen()
{
    super.updateScreen();

    if (this.lanServerList.getWasUpdated())
    {
        List<LanServerDetector.LanServer> list = this.lanServerList.getLanServers();
        this.lanServerList.setWasNotUpdated();
        this.serverListSelector.updateServerList(list);
    }

    this.oldServerPinger.pingPendingNetworks();
}
项目:Coherence    文件:UiMultiplayer.java   
public void connectToSelected()
{
    GuiListExtended.IGuiListEntry guilistextended$iguilistentry = this.serverListSelector.getSelectedSlot() < 0 ? null : this.serverListSelector.getListEntry(this.serverListSelector.getSelectedSlot());

    if (guilistextended$iguilistentry instanceof CoherenceSLEN)
    {
        this.connectToServer(((CoherenceSLEN)guilistextended$iguilistentry).getServerData());
    }
    else if (guilistextended$iguilistentry instanceof ServerListEntryLanDetected)
    {
        LanServerDetector.LanServer lanserverdetector$lanserver = ((ServerListEntryLanDetected)guilistextended$iguilistentry).getLanServer();
        this.connectToServer(new ServerData(lanserverdetector$lanserver.getServerMotd(), lanserverdetector$lanserver.getServerIpPort(), true));
    }
}
项目:Resilience-Client-Source    文件:ServerSelectionList.java   
public void func_148194_a(List p_148194_1_)
{
    this.field_148199_m.clear();
    Iterator var2 = p_148194_1_.iterator();

    while (var2.hasNext())
    {
        LanServerDetector.LanServer var3 = (LanServerDetector.LanServer)var2.next();
        this.field_148199_m.add(new ServerListEntryLanDetected(this.field_148200_k, var3));
    }
}
项目:Resilience-Client-Source    文件:GuiMultiplayer.java   
/**
 * Adds the buttons (and other controls) to the screen in question.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (!this.field_146801_C)
    {
        this.field_146801_C = true;
        this.field_146804_i = new ServerList(this.mc);
        this.field_146804_i.loadServerList();
        this.field_146799_A = new LanServerDetector.LanServerList();

        try
        {
            this.field_146800_B = new LanServerDetector.ThreadLanServerFind(this.field_146799_A);
            this.field_146800_B.start();
        }
        catch (Exception var2)
        {
            logger.warn("Unable to start LAN server detection: " + var2.getMessage());
        }

        this.field_146803_h = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.field_146803_h.func_148195_a(this.field_146804_i);
    }
    else
    {
        this.field_146803_h.func_148122_a(this.width, this.height, 32, this.height - 64);
    }

    this.func_146794_g();
}
项目:Resilience-Client-Source    文件:GuiMultiplayer.java   
public void func_146796_h()
{
    GuiListExtended.IGuiListEntry var1 = this.field_146803_h.func_148193_k() < 0 ? null : this.field_146803_h.func_148180_b(this.field_146803_h.func_148193_k());

    if (var1 instanceof ServerListEntryNormal)
    {
        this.func_146791_a(((ServerListEntryNormal)var1).func_148296_a());
    }
    else if (var1 instanceof ServerListEntryLanDetected)
    {
        LanServerDetector.LanServer var2 = ((ServerListEntryLanDetected)var1).func_148289_a();
        this.func_146791_a(new ServerData(var2.getServerMotd(), var2.getServerIpPort()));
    }
}
项目:ExpandedRailsMod    文件:GuiMultiplayer.java   
/**
 * Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the
 * window resizes, the buttonList is cleared beforehand.
 */
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (this.initialized)
    {
        this.serverListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
    }
    else
    {
        this.initialized = true;
        this.savedServerList = new ServerList(this.mc);
        this.savedServerList.loadServerList();
        this.lanServerList = new LanServerDetector.LanServerList();

        try
        {
            this.lanServerDetector = new LanServerDetector.ThreadLanServerFind(this.lanServerList);
            this.lanServerDetector.start();
        }
        catch (Exception exception)
        {
            LOGGER.warn("Unable to start LAN server detection: {}", new Object[] {exception.getMessage()});
        }

        this.serverListSelector = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.serverListSelector.updateOnlineServers(this.savedServerList);
    }

    this.createButtons();
}
项目:Cauldron    文件:ServerSelectionList.java   
public void func_148194_a(List p_148194_1_)
{
    this.field_148199_m.clear();
    Iterator iterator = p_148194_1_.iterator();

    while (iterator.hasNext())
    {
        LanServerDetector.LanServer lanserver = (LanServerDetector.LanServer)iterator.next();
        this.field_148199_m.add(new ServerListEntryLanDetected(this.field_148200_k, lanserver));
    }
}
项目:Cauldron    文件:GuiMultiplayer.java   
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (!this.field_146801_C)
    {
        this.field_146801_C = true;
        this.field_146804_i = new ServerList(this.mc);
        this.field_146804_i.loadServerList();
        this.field_146799_A = new LanServerDetector.LanServerList();

        try
        {
            this.field_146800_B = new LanServerDetector.ThreadLanServerFind(this.field_146799_A);
            this.field_146800_B.start();
        }
        catch (Exception exception)
        {
            logger.warn("Unable to start LAN server detection: " + exception.getMessage());
        }

        this.field_146803_h = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.field_146803_h.func_148195_a(this.field_146804_i);
    }
    else
    {
        this.field_146803_h.func_148122_a(this.width, this.height, 32, this.height - 64);
    }

    this.func_146794_g();
}
项目:Cauldron    文件:GuiMultiplayer.java   
public void func_146796_h()
{
    GuiListExtended.IGuiListEntry iguilistentry = this.field_146803_h.func_148193_k() < 0 ? null : this.field_146803_h.getListEntry(this.field_146803_h.func_148193_k());

    if (iguilistentry instanceof ServerListEntryNormal)
    {
        this.func_146791_a(((ServerListEntryNormal)iguilistentry).func_148296_a());
    }
    else if (iguilistentry instanceof ServerListEntryLanDetected)
    {
        LanServerDetector.LanServer lanserver = ((ServerListEntryLanDetected)iguilistentry).func_148289_a();
        this.func_146791_a(new ServerData(lanserver.getServerMotd(), lanserver.getServerIpPort(), true));
    }
}
项目:Cauldron    文件:ServerSelectionList.java   
public void func_148194_a(List p_148194_1_)
{
    this.field_148199_m.clear();
    Iterator iterator = p_148194_1_.iterator();

    while (iterator.hasNext())
    {
        LanServerDetector.LanServer lanserver = (LanServerDetector.LanServer)iterator.next();
        this.field_148199_m.add(new ServerListEntryLanDetected(this.field_148200_k, lanserver));
    }
}
项目:Cauldron    文件:GuiMultiplayer.java   
public void initGui()
{
    Keyboard.enableRepeatEvents(true);
    this.buttonList.clear();

    if (!this.field_146801_C)
    {
        this.field_146801_C = true;
        this.field_146804_i = new ServerList(this.mc);
        this.field_146804_i.loadServerList();
        this.field_146799_A = new LanServerDetector.LanServerList();

        try
        {
            this.field_146800_B = new LanServerDetector.ThreadLanServerFind(this.field_146799_A);
            this.field_146800_B.start();
        }
        catch (Exception exception)
        {
            logger.warn("Unable to start LAN server detection: " + exception.getMessage());
        }

        this.field_146803_h = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
        this.field_146803_h.func_148195_a(this.field_146804_i);
    }
    else
    {
        this.field_146803_h.func_148122_a(this.width, this.height, 32, this.height - 64);
    }

    this.func_146794_g();
}
项目:Cauldron    文件:GuiMultiplayer.java   
public void func_146796_h()
{
    GuiListExtended.IGuiListEntry iguilistentry = this.field_146803_h.func_148193_k() < 0 ? null : this.field_146803_h.getListEntry(this.field_146803_h.func_148193_k());

    if (iguilistentry instanceof ServerListEntryNormal)
    {
        this.func_146791_a(((ServerListEntryNormal)iguilistentry).func_148296_a());
    }
    else if (iguilistentry instanceof ServerListEntryLanDetected)
    {
        LanServerDetector.LanServer lanserver = ((ServerListEntryLanDetected)iguilistentry).func_148289_a();
        this.func_146791_a(new ServerData(lanserver.getServerMotd(), lanserver.getServerIpPort(), true));
    }
}
项目:DecompiledMinecraft    文件:ServerListEntryLanDetected.java   
protected ServerListEntryLanDetected(GuiMultiplayer p_i45046_1_, LanServerDetector.LanServer p_i45046_2_)
{
    this.field_148292_c = p_i45046_1_;
    this.field_148291_b = p_i45046_2_;
    this.mc = Minecraft.getMinecraft();
}
项目:DecompiledMinecraft    文件:ServerListEntryLanDetected.java   
public LanServerDetector.LanServer getLanServer()
{
    return this.field_148291_b;
}
项目:BaseClient    文件:ServerListEntryLanDetected.java   
protected ServerListEntryLanDetected(GuiMultiplayer p_i45046_1_, LanServerDetector.LanServer p_i45046_2_)
{
    this.field_148292_c = p_i45046_1_;
    this.field_148291_b = p_i45046_2_;
    this.mc = Minecraft.getMinecraft();
}
项目:BaseClient    文件:ServerListEntryLanDetected.java   
public LanServerDetector.LanServer getLanServer()
{
    return this.field_148291_b;
}
项目:BaseClient    文件:ServerListEntryLanDetected.java   
protected ServerListEntryLanDetected(GuiMultiplayer p_i45046_1_, LanServerDetector.LanServer p_i45046_2_)
{
    this.field_148292_c = p_i45046_1_;
    this.field_148291_b = p_i45046_2_;
    this.mc = Minecraft.getMinecraft();
}
项目:BaseClient    文件:ServerListEntryLanDetected.java   
public LanServerDetector.LanServer getLanServer()
{
    return this.field_148291_b;
}