Java 类net.minecraft.client.mco.Backup 实例源码

项目:RuneCraftery    文件:BackupList.java   
public static BackupList func_111222_a(String p_111222_0_) {
   BackupList var1 = new BackupList();
   var1.field_111223_a = new ArrayList();

   try {
      JsonRootNode var2 = (new JdomParser()).parse(p_111222_0_);
      if(var2.isArrayNode(new Object[]{"backups"})) {
         Iterator var3 = var2.getArrayNode(new Object[]{"backups"}).iterator();

         while(var3.hasNext()) {
            JsonNode var4 = (JsonNode)var3.next();
            var1.field_111223_a.add(Backup.func_110724_a(var4));
         }
      }
   } catch (InvalidSyntaxException var5) {
      ;
   } catch (IllegalArgumentException var6) {
      ;
   }

   return var1;
}
项目:Resilience-Client-Source    文件:GuiScreenBackup.java   
private void func_146827_i()
{
    if (this.field_146843_s >= 0 && this.field_146843_s < this.field_146847_i.size())
    {
        Date var1 = ((Backup)this.field_146847_i.get(this.field_146843_s)).field_148778_b;
        String var2 = DateFormat.getDateTimeInstance(3, 3).format(var1);
        String var3 = this.func_146829_a(Long.valueOf(System.currentTimeMillis() - var1.getTime()));
        String var4 = I18n.format("mco.configure.world.restore.question.line1", new Object[0]) + " \'" + var2 + "\' (" + var3 + ")";
        String var5 = I18n.format("mco.configure.world.restore.question.line2", new Object[0]);
        this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmation.ConfirmationType.Warning, var4, var5, 1));
    }
}
项目:Resilience-Client-Source    文件:GuiScreenBackup.java   
private void func_146839_r()
{
    Backup var1 = (Backup)this.field_146847_i.get(this.field_146843_s);
    GuiScreenBackup.RestoreTask var2 = new GuiScreenBackup.RestoreTask(var1, null);
    GuiScreenLongRunningTask var3 = new GuiScreenLongRunningTask(this.mc, this.field_146842_g, var2);
    var3.func_146902_g();
    this.mc.displayGuiScreen(var3);
}
项目:RuneCraftery    文件:GuiScreenBackup.java   
private void func_110374_h() {
   if(this.field_110376_e >= 0 && this.field_110376_e < this.field_110378_c.size()) {
      Backup var1 = (Backup)this.field_110378_c.get(this.field_110376_e);
      GuiScreenBackupRestoreTask var2 = new GuiScreenBackupRestoreTask(this, var1, (GuiScreenBackupDownloadThread)null);
      GuiScreenLongRunningTask var3 = new GuiScreenLongRunningTask(this.field_73882_e, this.field_110380_a, var2);
      var3.func_98117_g();
      this.field_73882_e.func_71373_a(var3);
   }

}
项目:RuneCraftery    文件:GuiScreenBackup.java   
private void func_110374_h()
{
    if (this.field_110376_e >= 0 && this.field_110376_e < this.field_110378_c.size())
    {
        Backup backup = (Backup)this.field_110378_c.get(this.field_110376_e);
        GuiScreenBackupRestoreTask guiscreenbackuprestoretask = new GuiScreenBackupRestoreTask(this, backup, (GuiScreenBackupDownloadThread)null);
        GuiScreenLongRunningTask guiscreenlongrunningtask = new GuiScreenLongRunningTask(this.mc, this.field_110380_a, guiscreenbackuprestoretask);
        guiscreenlongrunningtask.func_98117_g();
        this.mc.displayGuiScreen(guiscreenlongrunningtask);
    }
}
项目:BetterNutritionMod    文件:GuiScreenBackup.java   
private void func_110374_h()
{
    if (this.field_110376_e >= 0 && this.field_110376_e < this.field_110378_c.size())
    {
        Backup backup = (Backup)this.field_110378_c.get(this.field_110376_e);
        GuiScreenBackupRestoreTask guiscreenbackuprestoretask = new GuiScreenBackupRestoreTask(this, backup, (GuiScreenBackupDownloadThread)null);
        GuiScreenLongRunningTask guiscreenlongrunningtask = new GuiScreenLongRunningTask(this.mc, this.field_110380_a, guiscreenbackuprestoretask);
        guiscreenlongrunningtask.func_98117_g();
        this.mc.displayGuiScreen(guiscreenlongrunningtask);
    }
}
项目:Resilience-Client-Source    文件:GuiScreenBackup.java   
private RestoreTask(Backup par2Backup)
{
    this.field_148424_c = par2Backup;
}
项目:Resilience-Client-Source    文件:GuiScreenBackup.java   
RestoreTask(Backup par2Backup, Object par3GuiScreenBackupDownloadThread)
{
    this(par2Backup);
}
项目:Resilience-Client-Source    文件:GuiScreenBackup.java   
private void func_148385_b(int p_148385_1_, int p_148385_2_, int p_148385_3_, int p_148385_4_, Tessellator p_148385_5_)
{
    Backup var6 = (Backup)GuiScreenBackup.this.field_146847_i.get(p_148385_1_);
    GuiScreenBackup.this.drawString(GuiScreenBackup.this.fontRendererObj, "Backup (" + GuiScreenBackup.this.func_146829_a(Long.valueOf(MinecraftServer.getSystemTimeMillis() - var6.field_148778_b.getTime())) + ")", p_148385_2_ + 2, p_148385_3_ + 1, 16777215);
    GuiScreenBackup.this.drawString(GuiScreenBackup.this.fontRendererObj, this.func_148384_a(var6.field_148778_b), p_148385_2_ + 2, p_148385_3_ + 12, 7105644);
}
项目: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    文件: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    文件:GuiScreenBackupRestoreTask.java   
private GuiScreenBackupRestoreTask(GuiScreenBackup par1GuiScreenBackup, Backup par2Backup)
{
    this.theBackupScreen = par1GuiScreenBackup;
    this.theBackup = par2Backup;
}
项目:RuneCraftery    文件:GuiScreenBackupRestoreTask.java   
GuiScreenBackupRestoreTask(GuiScreenBackup par1GuiScreenBackup, Backup par2Backup, GuiScreenBackupDownloadThread par3GuiScreenBackupDownloadThread)
{
    this(par1GuiScreenBackup, par2Backup);
}
项目:RuneCraftery    文件:GuiScreenBackupSelectionList.java   
private void func_111246_b(int par1, int par2, int par3, int par4, Tessellator par5Tessellator)
{
    Backup backup = (Backup)GuiScreenBackup.func_110370_e(this.field_111249_a).get(par1);
    this.field_111249_a.drawString(GuiScreenBackup.func_130032_i(this.field_111249_a), "Backup (" + this.func_111248_a(Long.valueOf(MinecraftServer.getSystemTimeMillis() - backup.field_110725_b.getTime())) + ")", par2 + 2, par3 + 1, 16777215);
    this.field_111249_a.drawString(GuiScreenBackup.func_130033_j(this.field_111249_a), this.func_111247_a(backup.field_110725_b), par2 + 2, par3 + 12, 7105644);
}
项目:BetterNutritionMod    文件:GuiScreenBackupRestoreTask.java   
private GuiScreenBackupRestoreTask(GuiScreenBackup par1GuiScreenBackup, Backup par2Backup)
{
    this.theBackupScreen = par1GuiScreenBackup;
    this.theBackup = par2Backup;
}
项目:BetterNutritionMod    文件:GuiScreenBackupRestoreTask.java   
GuiScreenBackupRestoreTask(GuiScreenBackup par1GuiScreenBackup, Backup par2Backup, GuiScreenBackupDownloadThread par3GuiScreenBackupDownloadThread)
{
    this(par1GuiScreenBackup, par2Backup);
}
项目:BetterNutritionMod    文件:GuiScreenBackupSelectionList.java   
private void func_111246_b(int par1, int par2, int par3, int par4, Tessellator par5Tessellator)
{
    Backup backup = (Backup)GuiScreenBackup.func_110370_e(this.field_111249_a).get(par1);
    this.field_111249_a.drawString(GuiScreenBackup.func_130032_i(this.field_111249_a), "Backup (" + this.func_111248_a(Long.valueOf(MinecraftServer.getSystemTimeMillis() - backup.field_110725_b.getTime())) + ")", par2 + 2, par3 + 1, 16777215);
    this.field_111249_a.drawString(GuiScreenBackup.func_130033_j(this.field_111249_a), this.func_111247_a(backup.field_110725_b), par2 + 2, par3 + 12, 7105644);
}