Java 类net.minecraft.client.gui.GuiScreenConfirmation 实例源码

项目:Resilience-Client-Source    文件:GuiScreenResetWorld.java   
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.enabled)
    {
        if (p_146284_1_.id == 2)
        {
            this.mc.displayGuiScreen(this.field_146742_f);
        }
        else if (p_146284_1_.id == 1)
        {
            String var2 = I18n.format("mco.configure.world.reset.question.line1", new Object[0]);
            String var3 = I18n.format("mco.configure.world.reset.question.line2", new Object[0]);
            this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmation.ConfirmationType.Warning, var2, var3, 1));
        }
        else if (p_146284_1_.id == field_146746_s)
        {
            this.mc.displayGuiScreen(new GuiScreenMcoWorldTemplate(this, this.field_146745_t));
        }
    }
}
项目:RuneCraftery    文件:GuiScreenOnlineServers.java   
private void func_140019_s() {
   McoServer var1 = this.func_140030_b(this.field_96189_n);
   if(var1 != null) {
      if(this.field_73882_e.func_110432_I().func_111285_a().equals(var1.field_96405_e)) {
         McoServer var2 = this.func_98086_a(var1.field_96408_a);
         if(var2 != null) {
            field_96194_t.func_98248_d();
            this.field_73882_e.func_71373_a(new GuiScreenConfigureWorld(this, var2));
         }
      } else {
         String var4 = I18n.func_135053_a("mco.configure.world.leave.question.line1");
         String var3 = I18n.func_135053_a("mco.configure.world.leave.question.line2");
         this.field_73882_e.func_71373_a(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Info, var4, var3, 3));
      }
   }

}
项目:RuneCraftery    文件:GuiScreenBackup.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 == 1)
        {
            String s = I18n.getString("mco.configure.world.restore.question.line1");
            String s1 = I18n.getString("mco.configure.world.restore.question.line2");
            this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Warning, s, s1, 1));
        }
        else if (par1GuiButton.id == 0)
        {
            this.mc.displayGuiScreen(this.field_110380_a);
        }
        else
        {
            this.field_110375_d.actionPerformed(par1GuiButton);
        }
    }
}
项目:RuneCraftery    文件:GuiScreenResetWorld.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 == 2)
        {
            this.mc.displayGuiScreen(this.field_96152_a);
        }
        else if (par1GuiButton.id == 1)
        {
            String s = I18n.getString("mco.configure.world.reset.question.line1");
            String s1 = I18n.getString("mco.configure.world.reset.question.line2");
            this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Warning, s, s1, 1));
        }
        else if (par1GuiButton.id == field_110360_p)
        {
            this.mc.displayGuiScreen(new GuiScreenMcoWorldTemplate(this, this.field_110359_q));
        }
    }
}
项目:BetterNutritionMod    文件:GuiScreenBackup.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 == 1)
        {
            String s = I18n.getString("mco.configure.world.restore.question.line1");
            String s1 = I18n.getString("mco.configure.world.restore.question.line2");
            this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Warning, s, s1, 1));
        }
        else if (par1GuiButton.id == 0)
        {
            this.mc.displayGuiScreen(this.field_110380_a);
        }
        else
        {
            this.field_110375_d.actionPerformed(par1GuiButton);
        }
    }
}
项目:BetterNutritionMod    文件:GuiScreenResetWorld.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 == 2)
        {
            this.mc.displayGuiScreen(this.field_96152_a);
        }
        else if (par1GuiButton.id == 1)
        {
            String s = I18n.getString("mco.configure.world.reset.question.line1");
            String s1 = I18n.getString("mco.configure.world.reset.question.line2");
            this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Warning, s, s1, 1));
        }
        else if (par1GuiButton.id == field_110360_p)
        {
            this.mc.displayGuiScreen(new GuiScreenMcoWorldTemplate(this, this.field_110359_q));
        }
    }
}
项目: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));
    }
}
项目:RuneCraftery    文件:GuiScreenBackup.java   
protected void func_73875_a(GuiButton p_73875_1_) {
   if(p_73875_1_.field_73742_g) {
      if(p_73875_1_.field_73741_f == 1) {
         String var2 = I18n.func_135053_a("mco.configure.world.restore.question.line1");
         String var3 = I18n.func_135053_a("mco.configure.world.restore.question.line2");
         this.field_73882_e.func_71373_a(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Warning, var2, var3, 1));
      } else if(p_73875_1_.field_73741_f == 0) {
         this.field_73882_e.func_71373_a(this.field_110380_a);
      } else {
         this.field_110375_d.func_73875_a(p_73875_1_);
      }

   }
}
项目:RuneCraftery    文件:GuiScreenResetWorld.java   
protected void func_73875_a(GuiButton p_73875_1_) {
   if(p_73875_1_.field_73742_g) {
      if(p_73875_1_.field_73741_f == 2) {
         this.field_73882_e.func_71373_a(this.field_96152_a);
      } else if(p_73875_1_.field_73741_f == 1) {
         String var2 = I18n.func_135053_a("mco.configure.world.reset.question.line1");
         String var3 = I18n.func_135053_a("mco.configure.world.reset.question.line2");
         this.field_73882_e.func_71373_a(new GuiScreenConfirmation(this, GuiScreenConfirmationType.Warning, var2, var3, 1));
      } else if(p_73875_1_.field_73741_f == field_110360_p) {
         this.field_73882_e.func_71373_a(new GuiScreenMcoWorldTemplate(this, this.field_110359_q));
      }

   }
}
项目: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    文件:GuiScreenBackup.java   
private void func_146826_p()
{
    String var1 = I18n.format("mco.configure.world.restore.download.question.line1", new Object[0]);
    String var2 = I18n.format("mco.configure.world.restore.download.question.line2", new Object[0]);
    this.mc.displayGuiScreen(new GuiScreenConfirmation(this, GuiScreenConfirmation.ConfirmationType.Info, var1, var2, 2));
}