@Override
   protected void actionPerformed(GuiButton var1) {
      if(var1.enabled) {
         if(var1.id == 2) {
            String var2 = this.getSaveName(this.selectedWorld);
            if(var2 != null) {
               this.deleting = true;
               StringTranslate var3 = StringTranslate.getInstance();
               String var4 = var3.translateKey("selectWorld.deleteQuestion");
               String var5 = "\'" + var2 + "\' " + var3.translateKey("selectWorld.deleteWarning");
               String var6 = var3.translateKey("selectWorld.deleteButton");
               String var7 = var3.translateKey("gui.cancel");
               GuiYesNo var8 = new GuiYesNo(this, var4, var5, var6, var7, this.selectedWorld);
               this.mc.displayGuiScreen(var8);
            }
         } else if(var1.id == 1) {
            this.selectWorld(this.selectedWorld);
         } else if(var1.id == 3) {
            this.mc.displayGuiScreen(new GuiCreateWorld(this));
         } else if(var1.id == 6) {
            this.mc.displayGuiScreen(new GuiRenameWorld(this, this.getSaveFileName(this.selectedWorld)));
         } else if(var1.id == 0) {
            this.mc.displayGuiScreen(this.parentScreen);
         } else {
            this.worldSlotContainer.actionPerformed(var1);
         }

      }
   }