Java 类net.minecraft.client.gui.mco.GuiScreenBackup 实例源码

项目:RuneCraftery    文件:GuiScreenBackupRestoreTask.java   
public void run() {
   this.func_96576_b(I18n.func_135053_a("mco.backup.restoring"));

   try {
      McoClient var1 = new McoClient(this.func_96578_b().func_110432_I());
      var1.func_111235_c(GuiScreenBackup.func_110367_b(this.field_111255_a), this.field_111254_c.field_110727_a);

      try {
         Thread.sleep(1000L);
      } catch (InterruptedException var3) {
         Thread.currentThread().interrupt();
      }

      this.func_96578_b().func_71373_a(GuiScreenBackup.func_130031_d(this.field_111255_a));
   } catch (ExceptionMcoService var4) {
      GuiScreenBackup.func_130035_e(this.field_111255_a).func_98033_al().func_98232_c(var4.toString());
      this.func_96575_a(var4.toString());
   } catch (Exception var5) {
      this.func_96575_a(var5.getLocalizedMessage());
   }

}
项目:RuneCraftery    文件:GuiScreenBackupDownloadThread.java   
public void run() {
   McoClient var1 = new McoClient(GuiScreenBackup.func_110366_a(this.field_111250_a).func_110432_I());

   try {
      GuiScreenBackup.func_110373_a(this.field_111250_a, var1.func_111232_c(GuiScreenBackup.func_110367_b(this.field_111250_a)).field_111223_a);
   } catch (ExceptionMcoService var3) {
      GuiScreenBackup.func_130030_c(this.field_111250_a).func_98033_al().func_98232_c(var3.toString());
   }

}
项目:RuneCraftery    文件:GuiScreenConfigureWorld.java   
protected void func_73875_a(GuiButton p_73875_1_) {
   if(p_73875_1_.field_73742_g) {
      if(p_73875_1_.field_73741_f == 10) {
         if(this.field_102020_y) {
            ((GuiScreenOnlineServers)this.field_96285_a).func_102018_a(this.field_96280_b.field_96408_a);
         }

         this.field_73882_e.func_71373_a(this.field_96285_a);
      } else if(p_73875_1_.field_73741_f == 5) {
         this.field_73882_e.func_71373_a(new GuiScreenEditOnlineWorld(this, this.field_96285_a, this.field_96280_b));
      } else if(p_73875_1_.field_73741_f == 1) {
         String var2 = I18n.func_135053_a("mco.configure.world.close.question.line1");
         String var3 = I18n.func_135053_a("mco.configure.world.close.question.line2");
         this.field_73882_e.func_71373_a(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Info, var2, var3, 1));
      } else if(p_73875_1_.field_73741_f == 0) {
         this.func_96268_g();
      } else if(p_73875_1_.field_73741_f == 4) {
         this.field_73882_e.func_71373_a(new GuiScreenInvite(this.field_96285_a, this, this.field_96280_b));
      } else if(p_73875_1_.field_73741_f == 3) {
         this.func_96272_i();
      } else if(p_73875_1_.field_73741_f == 6) {
         this.field_73882_e.func_71373_a(new GuiScreenResetWorld(this, this.field_96280_b));
      } else if(p_73875_1_.field_73741_f == 7) {
         this.field_73882_e.func_71373_a(new GuiScreenSubscription(this, this.field_96280_b));
      } else if(p_73875_1_.field_73741_f == 8) {
         this.field_73882_e.func_71373_a(new GuiScreenBackup(this, this.field_96280_b.field_96408_a));
      }

   }
}
项目:Resilience-Client-Source    文件:GuiScreenConfigureWorld.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.enabled)
    {
        if (p_146284_1_.id == 10)
        {
            if (this.field_146883_D)
            {
                ((GuiScreenOnlineServers)this.field_146884_f).func_146670_h();
            }

            this.mc.displayGuiScreen(this.field_146884_f);
        }
        else if (p_146284_1_.id == 5)
        {
            this.mc.displayGuiScreen(new GuiScreenEditOnlineWorld(this, this.field_146884_f, this.field_146885_g));
        }
        else if (p_146284_1_.id == 1)
        {
            String var2 = I18n.format("mco.configure.world.close.question.line1", new Object[0]);
            String var3 = I18n.format("mco.configure.world.close.question.line2", new Object[0]);
            this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmation.ConfirmationType.Info, var2, var3, 1));
        }
        else if (p_146284_1_.id == 0)
        {
            this.func_146876_g();
        }
        else if (p_146284_1_.id == 4)
        {
            this.mc.displayGuiScreen(new GuiScreenInvite(this.field_146884_f, this, this.field_146885_g));
        }
        else if (p_146284_1_.id == 3)
        {
            this.func_146877_i();
        }
        else if (p_146284_1_.id == 6)
        {
            this.mc.displayGuiScreen(new GuiScreenResetWorld(this, this.field_146885_g));
        }
        else if (p_146284_1_.id == 7)
        {
            this.mc.displayGuiScreen(new GuiScreenSubscription(this, this.field_146885_g));
        }
        else if (p_146284_1_.id == 8)
        {
            this.mc.displayGuiScreen(new GuiScreenBackup(this, this.field_146885_g.field_148812_a));
        }
    }
}
项目:RuneCraftery    文件:GuiScreenBackupRestoreTask.java   
private GuiScreenBackupRestoreTask(GuiScreenBackup p_i1101_1_, Backup p_i1101_2_) {
   this.field_111255_a = p_i1101_1_;
   this.field_111254_c = p_i1101_2_;
}
项目:RuneCraftery    文件:GuiScreenBackupRestoreTask.java   
GuiScreenBackupRestoreTask(GuiScreenBackup p_i1102_1_, Backup p_i1102_2_, GuiScreenBackupDownloadThread p_i1102_3_) {
   this(p_i1102_1_, p_i1102_2_);
}
项目:RuneCraftery    文件:GuiScreenBackupDownloadThread.java   
GuiScreenBackupDownloadThread(GuiScreenBackup p_i1099_1_) {
   this.field_111250_a = p_i1099_1_;
}
项目:RuneCraftery    文件:GuiScreenBackupSelectionList.java   
public GuiScreenBackupSelectionList(GuiScreenBackup p_i1100_1_) {
   super(GuiScreenBackup.func_130036_f(p_i1100_1_), p_i1100_1_.field_73880_f, p_i1100_1_.field_73881_g, 32, p_i1100_1_.field_73881_g - 64, 36);
   this.field_111249_a = p_i1100_1_;
}
项目:RuneCraftery    文件:GuiScreenBackupSelectionList.java   
protected int func_77217_a() {
   return GuiScreenBackup.func_110370_e(this.field_111249_a).size() + 1;
}
项目:RuneCraftery    文件:GuiScreenBackupSelectionList.java   
protected void func_77213_a(int p_77213_1_, boolean p_77213_2_) {
   if(p_77213_1_ < GuiScreenBackup.func_110370_e(this.field_111249_a).size()) {
      GuiScreenBackup.func_130029_a(this.field_111249_a, p_77213_1_);
   }
}
项目:RuneCraftery    文件:GuiScreenBackupSelectionList.java   
protected boolean func_77218_a(int p_77218_1_) {
   return p_77218_1_ == GuiScreenBackup.func_130034_h(this.field_111249_a);
}
项目:RuneCraftery    文件:GuiScreenBackupSelectionList.java   
protected void func_77214_a(int p_77214_1_, int p_77214_2_, int p_77214_3_, int p_77214_4_, Tessellator p_77214_5_) {
   if(p_77214_1_ < GuiScreenBackup.func_110370_e(this.field_111249_a).size()) {
      this.func_111246_b(p_77214_1_, p_77214_2_, p_77214_3_, p_77214_4_, p_77214_5_);
   }

}
项目:RuneCraftery    文件:GuiScreenBackupSelectionList.java   
private void func_111246_b(int p_111246_1_, int p_111246_2_, int p_111246_3_, int p_111246_4_, Tessellator p_111246_5_) {
   Backup var6 = (Backup)GuiScreenBackup.func_110370_e(this.field_111249_a).get(p_111246_1_);
   this.field_111249_a.func_73731_b(GuiScreenBackup.func_130032_i(this.field_111249_a), "Backup (" + this.func_111248_a(Long.valueOf(MinecraftServer.func_130071_aq() - var6.field_110725_b.getTime())) + ")", p_111246_2_ + 2, p_111246_3_ + 1, 16777215);
   this.field_111249_a.func_73731_b(GuiScreenBackup.func_130033_j(this.field_111249_a), this.func_111247_a(var6.field_110725_b), p_111246_2_ + 2, p_111246_3_ + 12, 7105644);
}
项目:RuneCraftery    文件:GuiScreenConfigureWorld.java   
/**
 * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
 */
protected void actionPerformed(GuiButton par1GuiButton)
{
    if (par1GuiButton.enabled)
    {
        if (par1GuiButton.id == 10)
        {
            if (this.field_102020_y)
            {
                ((GuiScreenOnlineServers)this.field_96285_a).func_102018_a(this.field_96280_b.field_96408_a);
            }

            this.mc.displayGuiScreen(this.field_96285_a);
        }
        else if (par1GuiButton.id == 5)
        {
            this.mc.displayGuiScreen(new GuiScreenEditOnlineWorld(this, this.field_96285_a, this.field_96280_b));
        }
        else if (par1GuiButton.id == 1)
        {
            String s = I18n.getString("mco.configure.world.close.question.line1");
            String s1 = I18n.getString("mco.configure.world.close.question.line2");
            this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Info, s, s1, 1));
        }
        else if (par1GuiButton.id == 0)
        {
            this.func_96268_g();
        }
        else if (par1GuiButton.id == 4)
        {
            this.mc.displayGuiScreen(new GuiScreenInvite(this.field_96285_a, this, this.field_96280_b));
        }
        else if (par1GuiButton.id == 3)
        {
            this.func_96272_i();
        }
        else if (par1GuiButton.id == 6)
        {
            this.mc.displayGuiScreen(new GuiScreenResetWorld(this, this.field_96280_b));
        }
        else if (par1GuiButton.id == 7)
        {
            this.mc.displayGuiScreen(new GuiScreenSubscription(this, this.field_96280_b));
        }
        else if (par1GuiButton.id == 8)
        {
            this.mc.displayGuiScreen(new GuiScreenBackup(this, this.field_96280_b.field_96408_a));
        }
    }
}
项目:BetterNutritionMod    文件:GuiScreenConfigureWorld.java   
/**
 * Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
 */
protected void actionPerformed(GuiButton par1GuiButton)
{
    if (par1GuiButton.enabled)
    {
        if (par1GuiButton.id == 10)
        {
            if (this.field_102020_y)
            {
                ((GuiScreenOnlineServers)this.field_96285_a).func_102018_a(this.field_96280_b.field_96408_a);
            }

            this.mc.displayGuiScreen(this.field_96285_a);
        }
        else if (par1GuiButton.id == 5)
        {
            this.mc.displayGuiScreen(new GuiScreenEditOnlineWorld(this, this.field_96285_a, this.field_96280_b));
        }
        else if (par1GuiButton.id == 1)
        {
            String s = I18n.getString("mco.configure.world.close.question.line1");
            String s1 = I18n.getString("mco.configure.world.close.question.line2");
            this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Info, s, s1, 1));
        }
        else if (par1GuiButton.id == 0)
        {
            this.func_96268_g();
        }
        else if (par1GuiButton.id == 4)
        {
            this.mc.displayGuiScreen(new GuiScreenInvite(this.field_96285_a, this, this.field_96280_b));
        }
        else if (par1GuiButton.id == 3)
        {
            this.func_96272_i();
        }
        else if (par1GuiButton.id == 6)
        {
            this.mc.displayGuiScreen(new GuiScreenResetWorld(this, this.field_96280_b));
        }
        else if (par1GuiButton.id == 7)
        {
            this.mc.displayGuiScreen(new GuiScreenSubscription(this, this.field_96280_b));
        }
        else if (par1GuiButton.id == 8)
        {
            this.mc.displayGuiScreen(new GuiScreenBackup(this, this.field_96280_b.field_96408_a));
        }
    }
}