package net.minecraft.src;

import java.net.URL;

class RunnableTitleScreen implements Runnable {
	final GuiMainMenu field_104058_d;

	RunnableTitleScreen(GuiMainMenu var1) {
		this.field_104058_d = var1;
	}

	public void run() {
		try {
			String var1 = HttpUtil.func_104145_a(new URL("http://assets.minecraft.net/1_6_has_been_released.flag"));
			if(var1 != null && var1.length() > 0) {
				var1 = var1.trim();
				Object var2 = GuiMainMenu.func_104004_a(this.field_104058_d);
				synchronized(var2) {
					GuiMainMenu.func_104005_a(this.field_104058_d, EnumChatFormatting.BOLD + "Notice!" + EnumChatFormatting.RESET + " Minecraft 1.6 is available for manual download.");
					GuiMainMenu.func_104013_b(this.field_104058_d, var1);
					GuiMainMenu.func_104006_a(this.field_104058_d, GuiMainMenu.func_104022_c(this.field_104058_d).getStringWidth(GuiMainMenu.func_104023_b(this.field_104058_d)));
					GuiMainMenu.func_104014_b(this.field_104058_d, GuiMainMenu.func_104007_d(this.field_104058_d).getStringWidth(GuiMainMenu.field_96138_a));
					int var3 = Math.max(GuiMainMenu.func_104016_e(this.field_104058_d), GuiMainMenu.func_104015_f(this.field_104058_d));
					GuiMainMenu.func_104008_c(this.field_104058_d, (this.field_104058_d.width - var3) / 2);
					GuiMainMenu.func_104009_d(this.field_104058_d, ((GuiButton)GuiMainMenu.func_104019_g(this.field_104058_d).get(0)).yPosition - 24);
					GuiMainMenu.func_104011_e(this.field_104058_d, GuiMainMenu.func_104018_h(this.field_104058_d) + var3);
					GuiMainMenu.func_104012_f(this.field_104058_d, GuiMainMenu.func_104020_i(this.field_104058_d) + 24);
				}
			}
		} catch (Throwable var6) {
			var6.printStackTrace();
		}

	}
}
