Java 类net.minecraft.client.gui.achievement.GuiAchievements 实例源码

项目:CustomWorldGen    文件:GuiContainerCreative.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 101)
    {
        tabPage = Math.max(tabPage - 1, 0);
    }
    else if (button.id == 102)
    {
        tabPage = Math.min(tabPage + 1, maxPages);
    }
}
项目:Inventory-Power    文件:PlayerInventoryGUISurvival.java   
@Override
protected void actionPerformed(GuiButton button) throws IOException
   {
       if (button.id == 0)
       {
           this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
       }

       if (button.id == 1)
       {
           this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
       }

       if (button.id == 101)
       {

       }
   }
项目:ExpandedRailsMod    文件:GuiContainerCreative.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 101)
    {
        tabPage = Math.max(tabPage - 1, 0);
    }
    else if (button.id == 102)
    {
        tabPage = Math.min(tabPage + 1, maxPages);
    }
}
项目:Cauldron    文件:GuiContainerCreative.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (p_146284_1_.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (p_146284_1_.id == 101)
    {
        tabPage = Math.max(tabPage - 1, 0);
    }
    else if (p_146284_1_.id == 102)
    {
        tabPage = Math.min(tabPage + 1, maxPages);
    }
}
项目:Cauldron    文件:GuiContainerCreative.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (p_146284_1_.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (p_146284_1_.id == 101)
    {
        tabPage = Math.max(tabPage - 1, 0);
    }
    else if (p_146284_1_.id == 102)
    {
        tabPage = Math.min(tabPage + 1, maxPages);
    }
}
项目:RuneCraftery    文件:GuiContainerCreative.java   
/**
 * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
 */
protected void actionPerformed(GuiButton par1GuiButton)
{
    if (par1GuiButton.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
    }

    if (par1GuiButton.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
    }

    if (par1GuiButton.id == 101)
    {
        tabPage = Math.max(tabPage - 1, 0);
    }
    else if (par1GuiButton.id == 102)
    {
        tabPage = Math.min(tabPage + 1, maxPages);
    }
}
项目:BetterNutritionMod    文件:GuiContainerCreative.java   
/**
 * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
 */
protected void actionPerformed(GuiButton par1GuiButton)
{
    if (par1GuiButton.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
    }

    if (par1GuiButton.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
    }

    if (par1GuiButton.id == 101)
    {
        tabPage = Math.max(tabPage - 1, 0);
    }
    else if (par1GuiButton.id == 102)
    {
        tabPage = Math.min(tabPage + 1, maxPages);
    }
}
项目:DecompiledMinecraft    文件:GuiInventory.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:DecompiledMinecraft    文件:GuiContainerCreative.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:BaseClient    文件:GuiInventory.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:BaseClient    文件:GuiContainerCreative.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:BaseClient    文件:GuiInventory.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:BaseClient    文件:GuiContainerCreative.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:Backmemed    文件:GuiInventory.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter()));
    }
}
项目:Backmemed    文件:GuiContainerCreative.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter()));
    }
}
项目:CustomWorldGen    文件:GuiInventory.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:Resilience-Client-Source    文件:GuiIngameMenu.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    switch (p_146284_1_.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;

        case 1:
            p_146284_1_.enabled = false;
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);
            this.mc.displayGuiScreen(new HookGuiMainMenu());

        case 2:
        case 3:
        default:
            break;

        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;

        case 5:
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.func_146107_m()));
            break;

        case 6:
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.func_146107_m()));
            break;

        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
    }
}
项目:Resilience-Client-Source    文件:GuiInventory.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.func_146107_m()));
    }

    if (p_146284_1_.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.func_146107_m()));
    }
}
项目:Resilience-Client-Source    文件:GuiContainerCreative.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.func_146107_m()));
    }

    if (p_146284_1_.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.func_146107_m()));
    }
}
项目:ExpandedRailsMod    文件:GuiInventory.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:CosmeticArmor    文件:GuiCosmeticArmor.java   
@Override
protected void actionPerformed(GuiButton guiButton) {
    if (guiButton.id == 0) {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    } else if (guiButton.id == 1) {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:Cauldron    文件:GuiIngameMenu.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    switch (p_146284_1_.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;
        case 1:
            p_146284_1_.enabled = false;
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);
            this.mc.displayGuiScreen(new GuiMainMenu());
        case 2:
        case 3:
        default:
            break;
        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;
        case 5:
            if (this.mc.thePlayer != null)
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
            break;
        case 6:
            if (this.mc.thePlayer != null)
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
            break;
        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
            break;
        case 12:
            FMLClientHandler.instance().showInGameModOptions(this);
            break;
    }
}
项目:Cauldron    文件:GuiInventory.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (p_146284_1_.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:Cauldron    文件:GuiIngameMenu.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    switch (p_146284_1_.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;
        case 1:
            p_146284_1_.enabled = false;
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);
            this.mc.displayGuiScreen(new GuiMainMenu());
        case 2:
        case 3:
        default:
            break;
        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;
        case 5:
            if (this.mc.thePlayer != null)
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
            break;
        case 6:
            if (this.mc.thePlayer != null)
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
            break;
        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
            break;
        case 12:
            FMLClientHandler.instance().showInGameModOptions(this);
            break;
    }
}
项目:Cauldron    文件:GuiInventory.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (p_146284_1_.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:RuneMagic    文件:GuiPlayerExpanded.java   
@Override
protected void actionPerformed(GuiButton button)
{
    if (button.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
    }

    if (button.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
    }
}
项目:RuneCraftery    文件:GuiIngameMenu.java   
protected void func_73875_a(GuiButton p_73875_1_) {
   switch(p_73875_1_.field_73741_f) {
   case 0:
      this.field_73882_e.func_71373_a(new GuiOptions(this, this.field_73882_e.field_71474_y));
      break;
   case 1:
      p_73875_1_.field_73742_g = false;
      this.field_73882_e.field_71413_E.func_77450_a(StatList.field_75947_j, 1);
      this.field_73882_e.field_71441_e.func_72882_A();
      this.field_73882_e.func_71403_a((WorldClient)null);
      this.field_73882_e.func_71373_a(new GuiMainMenu());
   case 2:
   case 3:
   default:
      break;
   case 4:
      this.field_73882_e.func_71373_a((GuiScreen)null);
      this.field_73882_e.func_71381_h();
      this.field_73882_e.field_71416_A.func_82461_f();
      break;
   case 5:
      this.field_73882_e.func_71373_a(new GuiAchievements(this.field_73882_e.field_71413_E));
      break;
   case 6:
      this.field_73882_e.func_71373_a(new GuiStats(this, this.field_73882_e.field_71413_E));
      break;
   case 7:
      this.field_73882_e.func_71373_a(new GuiShareToLan(this));
   }

}
项目:RuneCraftery    文件:GuiInventory.java   
protected void func_73875_a(GuiButton p_73875_1_) {
   if(p_73875_1_.field_73741_f == 0) {
      this.field_73882_e.func_71373_a(new GuiAchievements(this.field_73882_e.field_71413_E));
   }

   if(p_73875_1_.field_73741_f == 1) {
      this.field_73882_e.func_71373_a(new GuiStats(this, this.field_73882_e.field_71413_E));
   }

}
项目:RuneCraftery    文件:GuiContainerCreative.java   
protected void func_73875_a(GuiButton p_73875_1_) {
   if(p_73875_1_.field_73741_f == 0) {
      this.field_73882_e.func_71373_a(new GuiAchievements(this.field_73882_e.field_71413_E));
   }

   if(p_73875_1_.field_73741_f == 1) {
      this.field_73882_e.func_71373_a(new GuiStats(this, this.field_73882_e.field_71413_E));
   }

}
项目:RuneCraftery    文件:GuiIngameMenu.java   
/**
 * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
 */
protected void actionPerformed(GuiButton par1GuiButton)
{
    switch (par1GuiButton.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;
        case 1:
            par1GuiButton.enabled = false;
            this.mc.statFileWriter.readStat(StatList.leaveGameStat, 1);
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);
            this.mc.displayGuiScreen(new GuiMainMenu());
        case 2:
        case 3:
        default:
            break;
        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            this.mc.sndManager.resumeAllSounds();
            break;
        case 5:
            this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
            break;
        case 6:
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
            break;
        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
    }
}
项目:RuneCraftery    文件:GuiInventory.java   
/**
 * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
 */
protected void actionPerformed(GuiButton par1GuiButton)
{
    if (par1GuiButton.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
    }

    if (par1GuiButton.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
    }
}
项目:BetterNutritionMod    文件:GuiIngameMenu.java   
/**
 * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
 */
protected void actionPerformed(GuiButton par1GuiButton)
{
    switch (par1GuiButton.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;
        case 1:
            par1GuiButton.enabled = false;
            this.mc.statFileWriter.readStat(StatList.leaveGameStat, 1);
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);
            this.mc.displayGuiScreen(new GuiMainMenu());
        case 2:
        case 3:
        default:
            break;
        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            this.mc.sndManager.resumeAllSounds();
            break;
        case 5:
            this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
            break;
        case 6:
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
            break;
        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
    }
}
项目:BetterNutritionMod    文件:GuiInventory.java   
/**
 * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
 */
protected void actionPerformed(GuiButton par1GuiButton)
{
    if (par1GuiButton.id == 0)
    {
        this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
    }

    if (par1GuiButton.id == 1)
    {
        this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
    }
}
项目:DecompiledMinecraft    文件:GuiIngameMenu.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    switch (button.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;

        case 1:
            boolean flag = this.mc.isIntegratedServerRunning();
            boolean flag1 = this.mc.func_181540_al();
            button.enabled = false;
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);

            if (flag)
            {
                this.mc.displayGuiScreen(new GuiMainMenu());
            }
            else if (flag1)
            {
                RealmsBridge realmsbridge = new RealmsBridge();
                realmsbridge.switchToRealms(new GuiMainMenu());
            }
            else
            {
                this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu()));
            }

        case 2:
        case 3:
        default:
            break;

        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;

        case 5:
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
            break;

        case 6:
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
            break;

        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
    }
}
项目:BaseClient    文件:GuiIngameMenu.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    switch (button.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;

        case 1:
            boolean flag = this.mc.isIntegratedServerRunning();
            boolean flag1 = this.mc.func_181540_al();
            button.enabled = false;
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);

            if (flag)
            {
                this.mc.displayGuiScreen(new GuiMainMenu());
            }
            else if (flag1)
            {
                RealmsBridge realmsbridge = new RealmsBridge();
                realmsbridge.switchToRealms(new GuiMainMenu());
            }
            else
            {
                this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu()));
            }

        case 2:
        case 3:
        default:
            break;

        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;

        case 5:
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
            break;

        case 6:
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
            break;

        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
    }
}
项目:BaseClient    文件:GuiIngameMenu.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    switch (button.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;

        case 1:
            boolean flag = this.mc.isIntegratedServerRunning();
            boolean flag1 = this.mc.func_181540_al();
            button.enabled = false;
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);

            if (flag)
            {
                this.mc.displayGuiScreen(new GuiMainMenu());
            }
            else if (flag1)
            {
                RealmsBridge realmsbridge = new RealmsBridge();
                realmsbridge.switchToRealms(new GuiMainMenu());
            }
            else
            {
                this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu()));
            }

        case 2:
        case 3:
        default:
            break;

        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;

        case 5:
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
            break;

        case 6:
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
            break;

        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
    }
}
项目:Backmemed    文件:GuiIngameMenu.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    switch (button.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;

        case 1:
            boolean flag = this.mc.isIntegratedServerRunning();
            boolean flag1 = this.mc.isConnectedToRealms();
            button.enabled = false;
            this.mc.world.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);

            if (flag)
            {
                this.mc.displayGuiScreen(new GuiMainMenu());
            }
            else if (flag1)
            {
                RealmsBridge realmsbridge = new RealmsBridge();
                realmsbridge.switchToRealms(new GuiMainMenu());
            }
            else
            {
                this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu()));
            }

        case 2:
        case 3:
        default:
            break;

        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;

        case 5:
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter()));
            break;

        case 6:
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter()));
            break;

        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
    }
}
项目:CustomWorldGen    文件:GuiIngameMenu.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    switch (button.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;
        case 1:
            boolean flag = this.mc.isIntegratedServerRunning();
            boolean flag1 = this.mc.isConnectedToRealms();
            button.enabled = false;
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);

            if (flag)
            {
                this.mc.displayGuiScreen(new GuiMainMenu());
            }
            else if (flag1)
            {
                RealmsBridge realmsbridge = new RealmsBridge();
                realmsbridge.switchToRealms(new GuiMainMenu());
            }
            else
            {
                this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu()));
            }

        case 2:
        case 3:
        default:
            break;
        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;
        case 5:
            if (this.mc.thePlayer != null)
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
            break;
        case 6:
            if (this.mc.thePlayer != null)
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
            break;
        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
            break;
        case 12:
            net.minecraftforge.fml.client.FMLClientHandler.instance().showInGameModOptions(this);
            break;
    }
}
项目:ExpandedRailsMod    文件:GuiIngameMenu.java   
/**
 * Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
 */
protected void actionPerformed(GuiButton button) throws IOException
{
    switch (button.id)
    {
        case 0:
            this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
            break;
        case 1:
            boolean flag = this.mc.isIntegratedServerRunning();
            boolean flag1 = this.mc.isConnectedToRealms();
            button.enabled = false;
            this.mc.theWorld.sendQuittingDisconnectingPacket();
            this.mc.loadWorld((WorldClient)null);

            if (flag)
            {
                this.mc.displayGuiScreen(new GuiMainMenu());
            }
            else if (flag1)
            {
                RealmsBridge realmsbridge = new RealmsBridge();
                realmsbridge.switchToRealms(new GuiMainMenu());
            }
            else
            {
                this.mc.displayGuiScreen(new GuiMultiplayer(new GuiMainMenu()));
            }

        case 2:
        case 3:
        default:
            break;
        case 4:
            this.mc.displayGuiScreen((GuiScreen)null);
            this.mc.setIngameFocus();
            break;
        case 5:
            if (this.mc.thePlayer != null)
            this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
            break;
        case 6:
            if (this.mc.thePlayer != null)
            this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
            break;
        case 7:
            this.mc.displayGuiScreen(new GuiShareToLan(this));
            break;
        case 12:
            net.minecraftforge.fml.client.FMLClientHandler.instance().showInGameModOptions(this);
            break;
    }
}