Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.83 KB | None | 0 0
  1. [code]package net.minecraft.client.gui;
  2.  
  3. import com.google.common.base.Strings;
  4. import com.google.common.collect.Lists;
  5. import cpw.mods.fml.client.GuiModList;
  6. import cpw.mods.fml.common.FMLCommonHandler;
  7. import cpw.mods.fml.relauncher.Side;
  8. import cpw.mods.fml.relauncher.SideOnly;
  9. import java.awt.image.BufferedImage;
  10. import java.io.BufferedReader;
  11. import java.io.IOException;
  12. import java.io.InputStreamReader;
  13. import java.net.URI;
  14. import java.nio.charset.Charset;
  15. import java.util.ArrayList;
  16. import java.util.Calendar;
  17. import java.util.Date;
  18. import java.util.List;
  19. import java.util.Random;
  20. import net.minecraft.client.Minecraft;
  21. import net.minecraft.client.gui.CustomButton;
  22. import net.minecraft.client.gui.FontRenderer;
  23. import net.minecraft.client.gui.GuiButton;
  24. import net.minecraft.client.gui.GuiConfirmOpenLink;
  25. import net.minecraft.client.gui.GuiCreateWorld;
  26. import net.minecraft.client.gui.GuiMultiplayer;
  27. import net.minecraft.client.gui.GuiOptions;
  28. import net.minecraft.client.gui.GuiScreen;
  29. import net.minecraft.client.gui.GuiScreenOnlineServers;
  30. import net.minecraft.client.gui.GuiSelectWorld;
  31. import net.minecraft.client.gui.GuiYesNo;
  32. import net.minecraft.client.gui.RunnableTitleScreen;
  33. import net.minecraft.client.gui.ThreadTitleScreen;
  34. import net.minecraft.client.renderer.Tessellator;
  35. import net.minecraft.client.texturepacks.GuiTexturePacks;
  36. import net.minecraft.util.EnumChatFormatting;
  37. import net.minecraft.util.MathHelper;
  38. import net.minecraft.util.StringTranslate;
  39. import net.minecraft.world.demo.DemoWorldServer;
  40. import net.minecraft.world.storage.ISaveFormat;
  41. import net.minecraft.world.storage.WorldInfo;
  42. import org.lwjgl.opengl.GL11;
  43. import org.lwjgl.util.glu.GLU;
  44.  
  45. @SideOnly(Side.CLIENT)
  46. public class GuiMainMenu extends GuiScreen {
  47.  
  48. private static final Random rand = new Random();
  49. private float updateCounter = 0.0F;
  50. private String splashText = "missingno";
  51. private GuiButton buttonResetDemo;
  52. private int panoramaTimer = 0;
  53. private int viewportTexture;
  54. private boolean field_96141_q = true;
  55. private static boolean field_96140_r = false;
  56. private static boolean field_96139_s = false;
  57. private final Object field_104025_t = new Object();
  58. private String field_92025_p;
  59. private String field_104024_v;
  60. private static final String[] titlePanoramaPaths = new String[]{"/title/bg/panorama0.png", "/title/bg/panorama1.png", "/title/bg/panorama2.png", "/title/bg/panorama3.png", "/title/bg/panorama4.png", "/title/bg/panorama5.png"};
  61. public static final String field_96138_a = ">>> " + EnumChatFormatting.UNDERLINE + "Жмякни!" + EnumChatFormatting.RESET + " <<<";
  62. private static final String GuiButtonLink = null;
  63. private int field_92024_r;
  64. private int field_92023_s;
  65. private int field_92022_t;
  66. private int field_92021_u;
  67. private int field_92020_v;
  68. private int field_92019_w;
  69. private GuiButton fmlModButton = null;
  70.  
  71.  
  72. public GuiMainMenu() {
  73. BufferedReader bufferedreader = null;
  74.  
  75. String s;
  76. try {
  77. ArrayList s1 = new ArrayList();
  78. bufferedreader = new BufferedReader(new InputStreamReader(GuiMainMenu.class.getResourceAsStream("/title/splashes.txt"), Charset.forName("UTF-8")));
  79.  
  80. while((s = bufferedreader.readLine()) != null) {
  81. s = s.trim();
  82. if(s.length() > 0) {
  83. s1.add(s);
  84. }
  85. }
  86.  
  87. do {
  88. this.splashText = (String)s1.get(rand.nextInt(s1.size()));
  89. } while(this.splashText.hashCode() == 125780783);
  90. } catch (IOException var12) {
  91. ;
  92. } finally {
  93. if(bufferedreader != null) {
  94. try {
  95. bufferedreader.close();
  96. } catch (IOException var11) {
  97. ;
  98. }
  99. }
  100.  
  101. }
  102.  
  103. this.updateCounter = rand.nextFloat();
  104. this.field_92025_p = "";
  105. String s11 = System.getProperty("1");
  106. s = System.getProperty("1");
  107. if("ppc".equalsIgnoreCase(s11)) {
  108. this.field_92025_p = "" + EnumChatFormatting.BOLD + "Notice!" + EnumChatFormatting.RESET + " PowerPC compatibility will be dropped in Minecraft 1.6";
  109. this.field_104024_v = "http://tinyurl.com/javappc";
  110. } else if(s != null && s.startsWith("1.5")) {
  111. this.field_92025_p = "" + EnumChatFormatting.BOLD + "Notice!" + EnumChatFormatting.RESET + " Java 1.5 compatibility will be dropped in Minecraft 1.6";
  112. this.field_104024_v = "http://tinyurl.com/javappc";
  113. }
  114.  
  115. if(this.field_92025_p.length() == 0) {
  116. (new Thread(new RunnableTitleScreen(this), "1.6 Update Check Thread")).start();
  117. }
  118.  
  119. }
  120.  
  121. public void updateScreen() {
  122. ++this.panoramaTimer;
  123. }
  124.  
  125. public boolean doesGuiPauseGame() {
  126. return false;
  127. }
  128.  
  129. protected void keyTyped(char par1, int par2) {}
  130.  
  131. public void initGui() {
  132. this.viewportTexture = this.g.renderEngine.allocateAndSetupTexture(new BufferedImage(256, 256, 2));
  133. Calendar calendar = Calendar.getInstance();
  134. calendar.setTime(new Date());
  135. if(calendar.get(2) + 1 == 11 && calendar.get(5) == 9) {
  136. this.splashText = "Happy birthday, ez!";
  137. } else if(calendar.get(2) + 1 == 6 && calendar.get(5) == 1) {
  138. this.splashText = "Happy birthday, Notch!";
  139. } else if(calendar.get(2) + 1 == 12 && calendar.get(5) == 24) {
  140. this.splashText = "Merry X-mas!";
  141. } else if(calendar.get(2) + 1 == 1 && calendar.get(5) == 1) {
  142. this.splashText = "Happy new year!";
  143. } else if(calendar.get(2) + 1 == 10 && calendar.get(5) == 31) {
  144. this.splashText = "OOoooOOOoooo! Spooky!";
  145. }
  146.  
  147. StringTranslate stringtranslate = StringTranslate.getInstance();
  148. int i = this.i / 4 + 48;
  149. if(this.g.isDemo()) {
  150. this.addDemoButtons(i, 24, stringtranslate);
  151. } else {
  152. this.addSingleplayerMultiplayerButtons(i, 24, stringtranslate);
  153. }
  154.  
  155. this.func_96137_a(stringtranslate, i, 24);
  156. if(this.g.hideQuitButton) {
  157. this.k.add(new CustomButton(0, this.h / 2 - 100, i + 72, stringtranslate.translateKey("menu.options")));
  158. } else {
  159. this.k.add(new CustomButton(0, this.h / 3 - 150, i + 72 + 0, 120, 20, stringtranslate.translateKey("menu.options")));
  160. this.k.add(new CustomButton(4, this.h / 3 - 150, i + 72 + 25, 120, 20, stringtranslate.translateKey("menu.quit")));
  161. }
  162.  
  163. Object var4 = this.field_104025_t;
  164. synchronized(this.field_104025_t) {
  165. this.field_92023_s = this.m.getStringWidth(this.field_92025_p);
  166. this.field_92024_r = this.m.getStringWidth(field_96138_a);
  167. int j = Math.max(this.field_92023_s, this.field_92024_r);
  168. this.field_92022_t = (this.h - j) / 2;
  169. this.field_92021_u = ((GuiButton)this.k.get(0)).yPosition - 24;
  170. this.field_92020_v = this.field_92022_t + j;
  171. this.field_92019_w = this.field_92021_u + 24;
  172. }
  173. }
  174.  
  175. private void func_96137_a(StringTranslate par1StringTranslate, int par2, int par3) {
  176. if(this.field_96141_q) {
  177. if(!field_96140_r) {
  178. field_96140_r = true;
  179. (new ThreadTitleScreen(this, par1StringTranslate, par2, par3)).start();
  180. } else if(field_96139_s) {
  181. this.func_98060_b(par1StringTranslate, par2, par3);
  182. }
  183. }
  184.  
  185. }
  186.  
  187. private void func_98060_b(StringTranslate par1StringTranslate, int par2, int par3) {
  188. this.fmlModButton.width = 98;
  189. this.fmlModButton.xPosition = this.h / 3 + 2;
  190. GuiButton realmButton = new GuiButton(3, this.h / 3 - 100, par2 + par3 * 2, par1StringTranslate.translateKey("menu.online"));
  191. realmButton.width = 98;
  192. realmButton.xPosition = this.h / 3 - 100;
  193. this.k.add(realmButton);
  194. }
  195.  
  196. private void addSingleplayerMultiplayerButtons(int par1, int par2, StringTranslate par3StringTranslate) {
  197. this.k.add(new CustomButton(1, this.h / 3 - 150, par1, par3StringTranslate.translateKey("Сохранения")));
  198. this.k.add(new CustomButton(2, this.h / 3 - 150, par1 + par2 * 1, par3StringTranslate.translateKey("Зайти на сервер!")));
  199. this.k.add(new CustomButton(105, this.h / 3 - 150, par1 + par2 * 2, par3StringTranslate.translateKey("Свой Текстурпак")));
  200. this.k.add(new CustomButton(5, this.h / 3 - 150, 101, par3StringTranslate.translateKey("Создать новый мир")));
  201. }
  202.  
  203. private void addDemoButtons(int par1, int par2, StringTranslate par3StringTranslate) {
  204. this.k.add(new GuiButton(11, this.h / 2 - 100, par1, par3StringTranslate.translateKey("menu.playdemo")));
  205. this.k.add(this.buttonResetDemo = new GuiButton(12, this.h / 2 - 100, par1 + par2 * 1, par3StringTranslate.translateKey("menu.resetdemo")));
  206. ISaveFormat isaveformat = this.g.getSaveLoader();
  207. WorldInfo worldinfo = isaveformat.getWorldInfo("Demo_World");
  208. if(worldinfo == null) {
  209. this.buttonResetDemo.enabled = false;
  210. }
  211.  
  212. }
  213.  
  214. protected void actionPerformed(GuiButton par1GuiButton) {
  215. if(par1GuiButton.id == 105) {
  216. this.g.gameSettings.saveOptions();
  217. this.g.displayGuiScreen(new GuiTexturePacks(this, this.g.options));
  218. }
  219.  
  220. if(par1GuiButton.id == 0) {
  221. this.g.displayGuiScreen(new GuiOptions(this, this.g.gameSettings));
  222. }
  223.  
  224. if(par1GuiButton.id == 1) {
  225. this.g.displayGuiScreen(new GuiSelectWorld(this));
  226. }
  227.  
  228. if(par1GuiButton.id == 2) {
  229. this.g.displayGuiScreen(new GuiMultiplayer(this));
  230. }
  231.  
  232. if(par1GuiButton.id == 3) {
  233. this.g.displayGuiScreen(new GuiScreenOnlineServers(this));
  234. }
  235.  
  236. if(par1GuiButton.id == 4) {
  237. this.g.shutdown();
  238. } else if(par1GuiButton.id == 5) {
  239. this.g.displayGuiScreen(new GuiCreateWorld(this));
  240. if(par1GuiButton.id == 6) {
  241. this.g.displayGuiScreen(new GuiModList(this));
  242. }
  243.  
  244. if(par1GuiButton.id == 10) {
  245. ;
  246. }
  247.  
  248. if(par1GuiButton.id == 11) {
  249. this.g.launchIntegratedServer("Demo_World", "Demo_World", DemoWorldServer.demoWorldSettings);
  250. }
  251.  
  252. if(par1GuiButton.id == 12) {
  253. ISaveFormat isaveformat = this.g.getSaveLoader();
  254. WorldInfo worldinfo = isaveformat.getWorldInfo("Demo_World");
  255. if(worldinfo != null) {
  256. GuiYesNo guiyesno = GuiSelectWorld.getDeleteWorldScreen(this, worldinfo.getWorldName(), 12);
  257. this.g.displayGuiScreen(guiyesno);
  258. }
  259. }
  260. }
  261.  
  262. }
  263.  
  264. public void confirmClicked(boolean par1, int par2) {
  265. if(par1 && par2 == 12) {
  266. ISaveFormat throwable1 = this.g.getSaveLoader();
  267. throwable1.flushCache();
  268. throwable1.deleteWorldDirectory("Demo_World");
  269. this.g.displayGuiScreen(this);
  270. } else if(par2 == 13) {
  271. if(par1) {
  272. try {
  273. Class throwable = Class.forName("java.awt.Desktop");
  274. Object object = throwable.getMethod("getDesktop", new Class[0]).invoke((Object)null, new Object[0]);
  275. throwable.getMethod("browse", new Class[]{URI.class}).invoke(object, new Object[]{new URI(this.field_104024_v)});
  276. } catch (Throwable var5) {
  277. var5.printStackTrace();
  278. }
  279. }
  280.  
  281. this.g.displayGuiScreen(this);
  282. }
  283.  
  284. }
  285.  
  286. private void drawPanorama(int par1, int par2, float par3) {
  287. Tessellator tessellator = Tessellator.instance;
  288. GL11.glMatrixMode(5889);
  289. GL11.glPushMatrix();
  290. GL11.glLoadIdentity();
  291. GLU.gluPerspective(120.0F, 1.0F, 0.05F, 10.0F);
  292. GL11.glMatrixMode(5888);
  293. GL11.glPushMatrix();
  294. GL11.glLoadIdentity();
  295. GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
  296. GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
  297. GL11.glEnable(3042);
  298. GL11.glDisable(3008);
  299. GL11.glDisable(2884);
  300. GL11.glDepthMask(false);
  301. GL11.glBlendFunc(770, 771);
  302. byte b0 = 8;
  303.  
  304. for(int k = 0; k < b0 * b0; ++k) {
  305. GL11.glPushMatrix();
  306. float f1 = ((float)(k % b0) / (float)b0 - 0.5F) / 64.0F;
  307. float f2 = ((float)(k / b0) / (float)b0 - 0.5F) / 64.0F;
  308. float f3 = 0.0F;
  309. GL11.glTranslatef(f1, f2, f3);
  310. GL11.glRotatef(MathHelper.sin(((float)this.panoramaTimer + par3) / 400.0F) * 25.0F + 20.0F, 1.0F, 0.0F, 0.0F);
  311. GL11.glRotatef(-((float)this.panoramaTimer + par3) * 0.1F, 0.0F, 1.0F, 0.0F);
  312.  
  313. for(int l = 0; l < 6; ++l) {
  314. GL11.glPushMatrix();
  315. if(l == 1) {
  316. GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
  317. }
  318.  
  319. if(l == 2) {
  320. GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
  321. }
  322.  
  323. if(l == 3) {
  324. GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
  325. }
  326.  
  327. if(l == 4) {
  328. GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
  329. }
  330.  
  331. if(l == 5) {
  332. GL11.glRotatef(-90.0F, 1.0F, 0.0F, 0.0F);
  333. }
  334.  
  335. this.g.renderEngine.bindTexture(titlePanoramaPaths[l]);
  336. tessellator.startDrawingQuads();
  337. tessellator.setColorRGBA_I(16777215, 255 / (k + 1));
  338. float f4 = 0.0F;
  339. tessellator.addVertexWithUV(-1.0D, -1.0D, 1.0D, (double)(0.0F + f4), (double)(0.0F + f4));
  340. tessellator.addVertexWithUV(1.0D, -1.0D, 1.0D, (double)(1.0F - f4), (double)(0.0F + f4));
  341. tessellator.addVertexWithUV(1.0D, 1.0D, 1.0D, (double)(1.0F - f4), (double)(1.0F - f4));
  342. tessellator.addVertexWithUV(-1.0D, 1.0D, 1.0D, (double)(0.0F + f4), (double)(1.0F - f4));
  343. tessellator.draw();
  344. GL11.glPopMatrix();
  345. }
  346.  
  347. GL11.glPopMatrix();
  348. GL11.glColorMask(true, true, true, false);
  349. }
  350.  
  351. tessellator.setTranslation(0.0D, 0.0D, 0.0D);
  352. GL11.glColorMask(true, true, true, true);
  353. GL11.glMatrixMode(5889);
  354. GL11.glPopMatrix();
  355. GL11.glMatrixMode(5888);
  356. GL11.glPopMatrix();
  357. GL11.glDepthMask(true);
  358. GL11.glEnable(2884);
  359. GL11.glEnable(3008);
  360. GL11.glEnable(2929);
  361. }
  362.  
  363. private void rotateAndBlurSkybox(float par1) {
  364. GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.viewportTexture);
  365. this.g.renderEngine.resetBoundTexture();
  366. GL11.glCopyTexSubImage2D(GL11.GL_TEXTURE_2D, 0, 0, 0, 0, 0, 256, 256);
  367. GL11.glEnable(GL11.GL_BLEND);
  368. GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
  369. GL11.glColorMask(true, true, true, false);
  370. Tessellator tessellator = Tessellator.instance;
  371. tessellator.startDrawingQuads();
  372. byte b0 = 3;
  373.  
  374. for(int i = 0; i < b0; ++i) {
  375. tessellator.setColorRGBA_F(1.0F, 1.0F, 1.0F, 1.0F / (float)(i + 1));
  376. int j = this.h;
  377. int k = this.i;
  378. float f1 = (float)(i - b0 / 2) / 256.0F;
  379. tessellator.addVertexWithUV((double)j, (double)k, (double)this.j, (double)(0.0F + f1), 0.0D);
  380. tessellator.addVertexWithUV((double)j, 0.0D, (double)this.j, (double)(1.0F + f1), 0.0D);
  381. tessellator.addVertexWithUV(0.0D, 0.0D, (double)this.j, (double)(1.0F + f1), 1.0D);
  382. tessellator.addVertexWithUV(0.0D, (double)k, (double)this.j, (double)(0.0F + f1), 1.0D);
  383. }
  384.  
  385. tessellator.draw();
  386. GL11.glColorMask(true, true, true, true);
  387. this.g.renderEngine.resetBoundTexture();
  388. }
  389.  
  390. private void renderSkybox(int par1, int par2, float par3)
  391. {
  392. GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.mc.renderEngine.getTexture("/title/bg.png"));
  393. GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);
  394. GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);
  395. Tessellator tessellator = Tessellator.instance;
  396. tessellator.startDrawingQuads();
  397. tessellator.setColorOpaque_I(16777215);
  398. tessellator.addVertexWithUV(0, this.height, 0, 0.0, 1.0);
  399. tessellator.addVertexWithUV(this.width, this.height, 0, 1.0, 1.0);
  400. tessellator.addVertexWithUV(this.width, 0 , 0, 1.0, 0.0);
  401. tessellator.addVertexWithUV(0 , 0 , 0, 0.0, 0.0);
  402. tessellator.draw();
  403. }
  404.  
  405. public void drawScreen(int par1, int par2, float par3) {
  406. this.renderSkybox(par1, par2, par3);
  407. Tessellator tessellator = Tessellator.instance;
  408. short short1 = 274;
  409. int k = this.h / 2 - short1 / 2;
  410. byte b0 = 30;
  411. this.a(0, 0, this.h, this.i, -2130706433, 16777215);
  412. this.a(0, 0, this.h, this.i, 0, Integer.MIN_VALUE);
  413. this.g.renderEngine.bindTexture("/title/mclogo.png");
  414. GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
  415. if((double)this.updateCounter < 1.0E-4D) {
  416. this.b(k + 0, b0 + 0, 0, 0, 99, 44);
  417. this.b(k + 99, b0 + 0, 129, 0, 27, 44);
  418. this.b(k + 99 + 26, b0 + 0, 126, 0, 3, 44);
  419. this.b(k + 99 + 26 + 3, b0 + 0, 99, 0, 26, 44);
  420. this.b(k + 155, b0 + 0, 0, 45, 155, 44);
  421. } else {
  422. this.b(k + 0, b0 + 0, 0, 0, 155, 44);
  423. this.b(k + 155, b0 + 0, 0, 45, 155, 44);
  424. }
  425.  
  426. tessellator.setColorOpaque_I(16777215);
  427. GL11.glPushMatrix();
  428. GL11.glTranslatef((float)(this.h / 2 + 90), 70.0F, 0.0F);
  429. GL11.glRotatef(-20.0F, 0.0F, 0.0F, 1.0F);
  430. float f1 = 1.8F - MathHelper.abs(MathHelper.sin((float)(Minecraft.getSystemTime() % 1000L) / 1000.0F * 3.1415927F * 2.0F) * 0.1F);
  431. f1 = f1 * 100.0F / (float)(this.m.getStringWidth(this.splashText) + 32);
  432. GL11.glScalef(f1, f1, f1);
  433. this.a(this.m, this.splashText, 0, -8, 16776960);
  434. GL11.glPopMatrix();
  435. String s = "Наш сайт - http://LimeCraft.Ru";
  436. if(this.g.isDemo()) {
  437. s = s + " Demo";
  438. }
  439.  
  440. List brandings = Lists.reverse(FMLCommonHandler.instance().getBrandings());
  441.  
  442. String s2;
  443. for(int s1 = 0; s1 < brandings.size(); ++s1) {
  444. s2 = (String)brandings.get(s1);
  445. if(!Strings.isNullOrEmpty(s2)) {
  446. this.b(this.m, s2, 2, this.i - (10 + s1 * (this.m.FONT_HEIGHT + 1)), 16777215);
  447. }
  448. }
  449.  
  450. String var13 = "Powered by Mojang AB. Do not distribute!";
  451. s2 = "Powered by kursorik";
  452. this.b(this.m, var13, this.h - this.m.getStringWidth(var13) - 2, this.i - 10, 16777215);
  453. this.b(this.m, s2, this.h - this.m.getStringWidth(s2) - 2, this.i - 20, 16777215);
  454. if(this.field_92025_p != null && this.field_92025_p.length() > 0) {
  455. a(this.field_92022_t - 2, this.field_92021_u - 2, this.field_92020_v + 2, this.field_92019_w - 1, 1428160512);
  456. this.b(this.m, this.field_92025_p, this.field_92022_t, this.field_92021_u, 16777215);
  457. this.b(this.m, field_96138_a, (this.h - this.field_92024_r) / 2, ((GuiButton)this.k.get(0)).yPosition - 12, 16777215);
  458. }
  459.  
  460. super.drawScreen(par1, par2, par3);
  461. }
  462.  
  463. protected void mouseClicked(int par1, int par2, int par3) {
  464. super.mouseClicked(par1, par2, par3);
  465. Object object = this.field_104025_t;
  466. Object var5 = this.field_104025_t;
  467. synchronized(this.field_104025_t) {
  468. if(this.field_92025_p.length() > 0 && par1 >= this.field_92022_t && par1 <= this.field_92020_v && par2 >= this.field_92021_u && par2 <= this.field_92019_w) {
  469. GuiConfirmOpenLink guiconfirmopenlink = new GuiConfirmOpenLink(this, this.field_104024_v, 13, true);
  470. guiconfirmopenlink.func_92026_h();
  471. this.g.displayGuiScreen(guiconfirmopenlink);
  472. }
  473.  
  474. }
  475. }
  476.  
  477. static Object func_104004_a(GuiMainMenu par0GuiMainMenu) {
  478. return par0GuiMainMenu.field_104025_t;
  479. }
  480.  
  481. static String func_104005_a(GuiMainMenu par0GuiMainMenu, String par1Str) {
  482. return par0GuiMainMenu.field_92025_p = par1Str;
  483. }
  484.  
  485. static String func_104013_b(GuiMainMenu par0GuiMainMenu, String par1Str) {
  486. return par0GuiMainMenu.field_104024_v = par1Str;
  487. }
  488.  
  489. static int func_104006_a(GuiMainMenu par0GuiMainMenu, int par1) {
  490. return par0GuiMainMenu.field_92023_s = par1;
  491. }
  492.  
  493. static String func_104023_b(GuiMainMenu par0GuiMainMenu) {
  494. return par0GuiMainMenu.field_92025_p;
  495. }
  496.  
  497. static FontRenderer func_104022_c(GuiMainMenu par0GuiMainMenu) {
  498. return par0GuiMainMenu.m;
  499. }
  500.  
  501. static int func_104014_b(GuiMainMenu par0GuiMainMenu, int par1) {
  502. return par0GuiMainMenu.field_92024_r = par1;
  503. }
  504.  
  505. static FontRenderer func_104007_d(GuiMainMenu par0GuiMainMenu) {
  506. return par0GuiMainMenu.m;
  507. }
  508.  
  509. static int func_104016_e(GuiMainMenu par0GuiMainMenu) {
  510. return par0GuiMainMenu.field_92023_s;
  511. }
  512.  
  513. static int func_104015_f(GuiMainMenu par0GuiMainMenu) {
  514. return par0GuiMainMenu.field_92024_r;
  515. }
  516.  
  517. static int func_104008_c(GuiMainMenu par0GuiMainMenu, int par1) {
  518. return par0GuiMainMenu.field_92022_t = par1;
  519. }
  520.  
  521. static int func_104009_d(GuiMainMenu par0GuiMainMenu, int par1) {
  522. return par0GuiMainMenu.field_92021_u = par1;
  523. }
  524.  
  525. static List func_104019_g(GuiMainMenu par0GuiMainMenu) {
  526. return par0GuiMainMenu.k;
  527. }
  528.  
  529. static int func_104011_e(GuiMainMenu par0GuiMainMenu, int par1) {
  530. return par0GuiMainMenu.field_92020_v = par1;
  531. }
  532.  
  533. static int func_104018_h(GuiMainMenu par0GuiMainMenu) {
  534. return par0GuiMainMenu.field_92022_t;
  535. }
  536.  
  537. static int func_104012_f(GuiMainMenu par0GuiMainMenu, int par1) {
  538. return par0GuiMainMenu.field_92019_w = par1;
  539. }
  540.  
  541. static int func_104020_i(GuiMainMenu par0GuiMainMenu) {
  542. return par0GuiMainMenu.field_92021_u;
  543. }
  544.  
  545. static Minecraft func_98058_a(GuiMainMenu par0GuiMainMenu) {
  546. return par0GuiMainMenu.g;
  547. }
  548.  
  549. static void func_98061_a(GuiMainMenu par0GuiMainMenu, StringTranslate par1StringTranslate, int par2, int par3) {
  550. par0GuiMainMenu.func_98060_b(par1StringTranslate, par2, par3);
  551. }
  552.  
  553. static boolean func_98059_a(boolean par0) {
  554. field_96139_s = par0;
  555. return par0;
  556. }
  557.  
  558. }
  559. [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement