protected void actionPerformed(GuiButton var1) {
      if(var1.id == 0) {
         this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
      }

      if(var1.id == 1) {
         this.mc.statFileWriter.readStat(StatList.leaveGameStat, 1);
         if(this.mc.isMultiplayerWorld()) {
            this.mc.theWorld.sendQuittingDisconnectingPacket();
         }

         this.mc.changeWorld1((World)null);
         this.mc.displayGuiScreen(new GuiMainMenu());
      }

      if(var1.id == 4) {
         this.mc.displayGuiScreen((GuiScreen)null);
         this.mc.setIngameFocus();
      }

      if(var1.id == 5) {
         this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
      }

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

   }