コード例 #1
0
ファイル: GuiMainMenu.java プロジェクト: TheRambler/MineGress
  protected void func_73875_a(GuiButton p_73875_1_) {
    if (p_73875_1_.field_73741_f == 0) {
      this.field_73882_e.func_71373_a(new GuiOptions(this, this.field_73882_e.field_71474_y));
    }

    if (p_73875_1_.field_73741_f == 5) {
      this.field_73882_e.func_71373_a(
          new GuiLanguage(
              this, this.field_73882_e.field_71474_y, this.field_73882_e.func_135016_M()));
    }

    if (p_73875_1_.field_73741_f == 1) {
      this.field_73882_e.func_71373_a(new GuiSelectWorld(this));
    }

    if (p_73875_1_.field_73741_f == 2) {
      this.field_73882_e.func_71373_a(new GuiMultiplayer(this));
    }

    if (p_73875_1_.field_73741_f == 14 && this.field_130023_H.field_73748_h) {
      this.func_140005_i();
    }

    if (p_73875_1_.field_73741_f == 4) {
      this.field_73882_e.func_71400_g();
    }

    if (p_73875_1_.field_73741_f == 11) {
      this.field_73882_e.func_71371_a("Demo_World", "Demo_World", DemoWorldServer.field_73071_a);
    }

    if (p_73875_1_.field_73741_f == 12) {
      ISaveFormat var2 = this.field_73882_e.func_71359_d();
      WorldInfo var3 = var2.func_75803_c("Demo_World");
      if (var3 != null) {
        GuiYesNo var4 = GuiSelectWorld.func_74061_a(this, var3.func_76065_j(), 12);
        this.field_73882_e.func_71373_a(var4);
      }
    }
  }
コード例 #2
0
 public void func_73866_w_() {
   Keyboard.enableRepeatEvents(true);
   this.field_146292_n.clear();
   this.field_146292_n.add(
       new GuiButton(
           0,
           this.field_146294_l / 2 - 100,
           this.field_146295_m / 4 + 96 + 12,
           I18n.func_135052_a("selectWorld.renameButton", new Object[0])));
   this.field_146292_n.add(
       new GuiButton(
           1,
           this.field_146294_l / 2 - 100,
           this.field_146295_m / 4 + 120 + 12,
           I18n.func_135052_a("gui.cancel", new Object[0])));
   ISaveFormat var1 = this.field_146297_k.func_71359_d();
   WorldInfo var2 = var1.func_75803_c(this.field_146584_g);
   String var3 = var2.func_76065_j();
   this.field_146583_f =
       new GuiTextField(2, this.field_146289_q, this.field_146294_l / 2 - 100, 60, 200, 20);
   this.field_146583_f.func_146195_b(true);
   this.field_146583_f.func_146180_a(var3);
 }