Exemplo n.º 1
0
  public GuiMainMenu() {
    field_96141_q = true;
    splashText = "missingno";
    BufferedReader bufferedreader = null;

    try {
      ArrayList arraylist = new ArrayList();
      bufferedreader =
          new BufferedReader(
              new InputStreamReader(
                  Minecraft.getMinecraft()
                      .func_110442_L()
                      .func_110536_a(field_110353_x)
                      .func_110527_b(),
                  Charsets.UTF_8));

      do {
        String s1;

        if ((s1 = bufferedreader.readLine()) == null) {
          break;
        }

        s1 = s1.trim();

        if (!s1.isEmpty()) {
          arraylist.add(s1);
        }
      } while (true);

      do {
        splashText = (String) arraylist.get(rand.nextInt(arraylist.size()));
      } while (splashText.hashCode() == 0x77f432f);
    } catch (IOException ioexception) {
    } finally {
      if (bufferedreader != null) {
        try {
          bufferedreader.close();
        } catch (IOException ioexception1) {
        }
      }
    }

    updateCounter = rand.nextFloat();
    updateCounter2 = updateCounter;
    field_92025_p = "";
    String s = System.getProperty("os_architecture");
    String s2 = System.getProperty("java_version");

    if ("ppc".equalsIgnoreCase(s)) {
      field_92025_p =
          (new StringBuilder())
              .append("")
              .append(EnumChatFormatting.BOLD)
              .append("Notice!")
              .append(EnumChatFormatting.RESET)
              .append(" PowerPC compatibility will be dropped in Minecraft 1.6")
              .toString();
      field_104024_v = "http://tinyurl.com/javappc";
    } else if (s2 != null && s2.startsWith("1.5")) {
      field_92025_p =
          (new StringBuilder())
              .append("")
              .append(EnumChatFormatting.BOLD)
              .append("Notice!")
              .append(EnumChatFormatting.RESET)
              .append(" Java 1.5 compatibility will be dropped in Minecraft 1.6")
              .toString();
      field_104024_v = "http://tinyurl.com/javappc";
    }
  }