protected final void onButtonClick(Button var1) {
      if(var1.active) {
         if(var1.id < 100) {
            this.settings.toggleSetting(var1.id, 1);
            var1.text = this.settings.getSetting(var1.id);
         }

         if(var1.id == 100) {
            this.minecraft.setCurrentScreen(new ControlsScreen(this, this.settings));
         }

         if(var1.id == 200) {
            this.minecraft.setCurrentScreen(this.parent);
         }

      }
   }