Résolu Boutons de connexion à un serveur,Boutons de site
-
Bonjour j’ai crée un mod qui modifie le menu et j’ai Ajouté 3 boutons:1 boutons connexion à un serveur et 1 boutons qui ouvre le navigateur principale en méttant sur un site et le 3 un ts qui marche grâce à un tuto
Sachez que avant de posté j’ai cherché des dizaine de sujet sur MFF j’en suis tombé sur des tonnes que j’ai éssayé chaque codage en les gardant ou les modifiant dans les 2 cas sa ne marché pas
Mes Code actuel:
Le Boutons de connexion au serveur:protected void actionPerformed(GuiButton button) { if(button.id == 60) { this.mc.displayGuiScreen(new GuiConnecting(this, mc, "62.210.62.194", 10048)); } if(button.id == 32) { try { Class oclass = Class.forName("java.awt.Desktop"); Object object = oclass.getMethod("getDesktop", new Class[0]).invoke((Object)null, new Object[0]); oclass.getMethod("browse", new Class[] {URI.class}).invoke(object, new Object[] {new URI("http://www.minecraftforgefrance.fr/")}); } catch(Throwable throwable) { logger.error("Couldn\'t open link", throwable); } } }
Merci de vos réponse sa fait 1 et demi semaine que j’essaye chaque jours
Cordialement mes plus sincère excuse je sais qu’il à beaucoup de sujet qui traite cela sur le forum
-
En effet, ça vient que tu sors des fonctions de nul part …
Ta fonction actionPerformed n’a jamais appelé.Il faut passer par des event, comme pour le reste :
@SubscribeEvent public void onActionPerformed(ActionPerformedEvent.Pre event) { if (event.gui instanceof GuiMainMenu) { if(event.button.id == 32) { Desktop.getDesktop().browse(new URI("http://www.minecraftforgefrance.fr/")); } else if(event.button.id == 60) { FMLClientHandler.instance().setupServerList(); FMLClientHandler.instance().connectToServer(this, new ServerData("62.210.62.194", "10048")) } } }
-
C’est quoi qui marche pas le bouton de co au serveur, le site, ou les deux ? Pour le site, pourquoi utilises-tu la réflexion ? “Desktop.getDesktop().browse(“l’url”);” est plus simple ^^.
Et vérifies bien les id de tes boutons (je sais c’est idiot mais ça peut arriver ^^). -
Quel est le problème exactement ?
“Ca marche pas ?” C’est à dire ? Un peu plus d’explications je t’en prie
-
Pour l’explication c’est les boutons de site + de connexion au serveur marche lui
Merci AymericRed je vais testé
-
Peut étre que sa vien de sa?
Pour ma par je ne vois pas me problème@SubscribeEvent public void onInitGuiEventF(InitGuiEvent.Post event) { int i = event.gui.height / 6 + 30; event.buttonList.add(new GuiButton(60, event.gui.width / 2 - 100, i + 24 * 2, 175, 20, "Rejoindre le serveur") { }); } @SubscribeEvent public void onInitGuiEventA(InitGuiEvent.Post event) { if (event.gui instanceof GuiMainMenu) { for (Object b : event.buttonList) { if (((GuiButton) b).id == 14) { ((GuiButton) b).visible = false; } } int i = event.gui.height / 3 + 25; event.buttonList.add(new GuiButton(30, event.gui.width / 2 - 80, i + 24 * 2, 150, 20,( "Teamspeak")) { @Override public void mouseReleased(int x, int y) { if (Desktop.isDesktopSupported()) { try { Desktop.getDesktop().browse(new URI("ts3server://ts.enderdeath.fr?port=9987")); } catch (Exception e) { } } } }); ObfuscationReflectionHelper.setPrivateValue(GuiMainMenu.class, (GuiMainMenu) event.gui, "Bienvenue sur EnderDeath", "splashText", "field_73975_c"); // On modifie le SplashText } } @SubscribeEvent public void onInitGuiEventAd(InitGuiEvent.Post event) { int i = event.gui.height /2 + 15; event.buttonList.add(new GuiButton(32, event.gui.width / 2 - 55, i + 24 * 2, 100, 20, "Site internet") { @Override public void mouseReleased(int x, int y) { } }); ObfuscationReflectionHelper.setPrivateValue(GuiMainMenu.class, (GuiMainMenu) event.gui, "Bienvenue sur EnderDeath", "splashText", "field_73975_c"); // On modifie le SplashText }
-
Déjà, simplifie ton code, pourquoi plusieurs fonction séparées ? Mets tout en une, ça sera plus simple, surtout que ça sert à rien de modifier 2 fois le splash text.
Je suppose que c’est normal que tu ais pas mis les fonctions mouseReleased dans les autres boutons donc là normalement c’est bon. -
Je vais éssayé de les assemblé sinon j’ai enlevé les splash text en trop mais je me pense pas que je me suis trompé au niveau des id
Edit:C’est peut étre que sa vient de mon serveur?
Pour le Site J’ai éssayé saif(button.id == 32) { try { Desktop.getDesktop().browse(new URI("http://www.minecraftforgefrance.fr/")); } catch(Throwable throwable) { logger.error("Couldn\'t open link", throwable); } }
Sa marche toujours pas
re Edditif(button.id == 60) { FMLClientHandler.instance().setupServerList(); FMLClientHandler.instance().connectToServer(this, new ServerData("62.210.62.194", "10048")); }
-
Attend, t’a register les boutons, dans avec l’event d’init de gui, ton action performed, tu l’as où ?
-
Le code est bon, tu dois avoir un problème avec l’id.
-
event.buttonList.add(new GuiButton(60/C’est l’id?/ , event.gui.width / 2 - 100, i + 24 * 2, 175, 20, “Rejoindre le serveur”)
Je pense aussi que c’est sa je vais vérifié avec un system.out.println -
Oui c’est ça l’id.
-
Pourtant c’est bien l’id je ne comprend pas :s
-
Oui c’est bizarre, je trouve aussi o_O
Essaie sinon de debug la méthode actionPerformed, mets un println avant la condition qui check l’id, tu regardes si il est affiché dans la console. Puis si oui, ensuite tu en mets un dans la condition, et ainsi de suite… -
Je l’ai System.out.println pour voir si c’était la bonne id et sa me met pas le sytem.out.println
Franchement je trouve sa bizarre je connais quelqu’un qui à fait sa et sa à marché direct :sPetite question si le port et l’ip était pas bonne sa nous métras comme même que sa essaye de se co à un serveur???
-
La méthode n’est pas appelée, recommence à 0 ou essaie de voir directement d’où ça vient. Je ne peux pas chercher de mon côté étant donné que je ne suis pas chez moi, déso…
-
Envoies ta classe en entière.
-
Plagion pas grave ^^
et tien Robin peut étre que sa vient d’autre chose?
package ed.enderdeathMenu.mod; import java.awt.Desktop; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URI; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Random; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiButtonLanguage; import net.minecraft.client.gui.GuiConfirmOpenLink; import net.minecraft.client.gui.GuiLanguage; import net.minecraft.client.gui.GuiMainMenu; import net.minecraft.client.gui.GuiMultiplayer; import net.minecraft.client.gui.GuiOptions; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.GuiSelectWorld; import net.minecraft.client.gui.GuiYesNo; import net.minecraft.client.gui.GuiYesNoCallback; import net.minecraft.client.multiplayer.GuiConnecting; import net.minecraft.client.multiplayer.ServerData; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.texture.DynamicTexture; import net.minecraft.client.resources.I18n; import net.minecraft.realms.RealmsBridge; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.MathHelper; import net.minecraft.util.ResourceLocation; import net.minecraft.world.demo.DemoWorldServer; import net.minecraft.world.storage.ISaveFormat; import net.minecraft.world.storage.WorldInfo; import net.minecraftforge.client.event.GuiScreenEvent.ActionPerformedEvent; import net.minecraftforge.client.event.GuiScreenEvent.InitGuiEvent; import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.common.MinecraftForge; import org.apache.commons.io.Charsets; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GLContext; import com.google.common.base.Strings; import com.google.common.collect.Lists; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.ObfuscationReflectionHelper; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class GuiCustomMenu extends GuiScreen implements GuiYesNoCallback { private static String fpsString; private static final Logger logger = LogManager.getLogger(); /** The RNG used by the Main Menu Screen. */ private static final Random rand = new Random(); /** Counts the number of screen updates. */ private float updateCounter; /** The splash message. */ private String splashText; private GuiButton buttonResetDemo; /** Timer used to rotate the panorama, increases every tick. */ private int panoramaTimer; /** * Texture allocated for the current viewport of the main menu's panorama background. */ private DynamicTexture viewportTexture; private final Object field_104025_t = new Object(); private String field_92025_p; private String field_146972_A; private String field_104024_v; private static final ResourceLocation splashTexts = new ResourceLocation("texts/splashes.txt"); private static final ResourceLocation minecraftTitleTextures = new ResourceLocation("textures/gui/title/minecraft.png"); private final ResourceLocation backGround = new ResourceLocation("enderdeathMenu","textures/gui/menu.png"); // faut changer l'id du mod ici public static final String field_96138_a = "Please click " + EnumChatFormatting.UNDERLINE + "here" + EnumChatFormatting.RESET + " for more information."; private int field_92024_r; private int field_92023_s; private int field_92022_t; private int field_92021_u; private int field_92020_v; private int field_92019_w; private ResourceLocation field_110351_G; public GuiCustomMenu() { this.field_146972_A = field_96138_a; this.splashText = "missingno"; BufferedReader bufferedreader = null; try { ArrayList arraylist = new ArrayList(); bufferedreader = new BufferedReader(new InputStreamReader(Minecraft.getMinecraft().getResourceManager().getResource(splashTexts).getInputStream(), Charsets.UTF_8)); String s; while((s = bufferedreader.readLine()) != null) { s = s.trim(); if(!s.isEmpty()) { arraylist.add(s); } } if(!arraylist.isEmpty()) { do { this.splashText = (String)arraylist.get(rand.nextInt(arraylist.size())); } while(this.splashText.hashCode() == 125780783); } } catch(IOException ioexception1) { ; } finally { if(bufferedreader != null) { try { bufferedreader.close(); } catch(IOException ioexception) { ; } } } this.updateCounter = rand.nextFloat(); this.field_92025_p = ""; if(!GLContext.getCapabilities().OpenGL20 && !OpenGlHelper.func_153193_b()) { this.field_92025_p = I18n.format("title.oldgl1", new Object[0]); this.field_146972_A = I18n.format("title.oldgl2", new Object[0]); this.field_104024_v = "https://help.mojang.com/customer/portal/articles/325948?ref=game"; } } /** * Called from the main game loop to update the screen. */ public void updateScreen() { ++this.panoramaTimer; } /** * Returns true if this GUI should pause the game when it is displayed in single-player */ public boolean doesGuiPauseGame() { return false; } /** * Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). */ private void renderBackGround() { GL11.glViewport(0, 0, 256, 256); this.mc.getTextureManager().bindTexture(backGround); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glViewport(0, 0, this.mc.displayWidth, this.mc.displayHeight); Tessellator tessellator = Tessellator.instance; tessellator.startDrawingQuads(); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR); tessellator.setColorRGBA_F(1.0F, 1.0F, 1.0F, 1.0F); int k = this.width; int l = this.height; tessellator.addVertexWithUV(0, 0, this.zLevel, 0, 0); tessellator.addVertexWithUV(0, l, this.zLevel, 0, 1); tessellator.addVertexWithUV(k, l, this.zLevel, 1, 1); tessellator.addVertexWithUV(k, 0, this.zLevel, 1, 0); tessellator.draw(); } @SubscribeEvent public void onInitGuiEven(InitGuiEvent.Post event) { if (event.gui instanceof GuiMainMenu) { // On regarde si le gui est bien le menu principal for (Object b : event.buttonList) { // On parcourt la liste des boutons if (((GuiButton) b).id == 2) { // Si c'est le bouton "Minecraft Realms" (qui a l'ID 14) ((GuiButton) b).visible = false; // On ne l'affiche plus } if (((GuiButton) b).id == 1) { // Si c'est le bouton "Minecraft Realms" (qui a l'ID 14) ((GuiButton) b).visible = false; // On ne l'affiche plus } if (((GuiButton) b).id == 6) { // Si c'est le bouton "Minecraft Realms" (qui a l'ID 14) ((GuiButton) b).visible = false; // On ne l'affiche plus } if (((GuiButton) b).id == 5) { // Si c'est le bouton "Minecraft Realms" (qui a l'ID 14) ((GuiButton) b).visible = false; // On ne l'affiche plus } if (((GuiButton) b).id == 0) { // Si c'est le bouton "Minecraft Realms" (qui a l'ID 14) ((GuiButton) b).visible = false; // On ne l'affiche plus } if (((GuiButton) b).id == 4) { // Si c'est le bouton "Minecraft Realms" (qui a l'ID 14) ((GuiButton) b).visible = false; // On ne l'affiche plus } } } } @SubscribeEvent public void onInitGuiEventF(final InitGuiEvent.Post event) { int i = event.gui.height / 6 + 30; event.buttonList.add(new GuiButton(60, event.gui.width / 2 - 100, i + 24 * 2, 175, 20, "Rejoindre le serveur") { }); } @SubscribeEvent public void onInitGuiEventA(InitGuiEvent.Post event) { if (event.gui instanceof GuiMainMenu) { for (Object b : event.buttonList) { if (((GuiButton) b).id == 14) { ((GuiButton) b).visible = false; } } int i = event.gui.height / 3 + 25; event.buttonList.add(new GuiButton(30, event.gui.width / 2 - 80, i + 24 * 2, 150, 20,( "Teamspeak")) { @Override public void mouseReleased(int x, int y) { if (Desktop.isDesktopSupported()) { try { Desktop.getDesktop().browse(new URI("ts3server://ts.enderdeath.fr?port=9987")); } catch (Exception e) { } } } }); } } @SubscribeEvent public void onInitGuiEventAd(InitGuiEvent.Post event) { int i = event.gui.height /2 + 15; event.buttonList.add(new GuiButton(32, event.gui.width / 2 - 55, i + 24 * 2, 100, 20, "Site internet") { @Override public void mouseReleased(int x, int y) { } }); ObfuscationReflectionHelper.setPrivateValue(GuiMainMenu.class, (GuiMainMenu) event.gui, "Bienvenue sur EnderDeath", "splashText", "field_73975_c"); // On modifie le SplashText } @SubscribeEvent public void onActionPerformedA(ActionPerformedEvent.Pre event) { if (event.gui instanceof GuiOptions && event.button.id == 104) event.setCanceled(true); }// Si l'ID est 100 (le bouton des Resource Packs), on annule public void action(GuiButton buttom) { if(buttom.id == 31) { try { Class oclass = Class.forName("java.awt.Desktop"); Object object = oclass.getMethod("getDesktop", new Class[0]).invoke((Object)null, new Object[0]); oclass.getMethod("browse", new Class[] {URI.class}).invoke(object, new Object[] {new URI("http://Silicium-mc.craftaserv.fr")}); } catch(Throwable throwable) { logger.error("Couldn\'t open link", throwable); } } } protected void actionPerformed(GuiButton button) { if(button.id == 60) { FMLClientHandler.instance().setupServerList(); FMLClientHandler.instance().connectToServer(this, new ServerData("62.210.62.194", "10048")); /*J'ai enlevé le system.out.println*/ } if(button.id == 32) { try { Desktop.getDesktop().browse(new URI("http://www.minecraftforgefrance.fr/")); } catch(Throwable throwable) { logger.error("Couldn\'t open link", throwable); } } } /*Sa c'est le début de f3 mais je l'ai laissé tombé pour l'instant*/ @SideOnly(Side.CLIENT) @SubscribeEvent public void onRenderPre(RenderGameOverlayEvent.Pre event) { if(event.type == RenderGameOverlayEvent.ElementType.DEBUG) { event.setCanceled(true); } } public void drawString(FontRenderer par1FontRenderer, String par2Str, int par3, int par4, int par5) { Minecraft mc = FMLClientHandler.instance().getClient(); fpsString = mc.debug.split(",", 2)[0]; this.drawString(Minecraft.getMinecraft().fontRenderer, par2Str, 10, 50, 14737632); fpsString = mc.theWorld.getBiomeGenForCoords(par3, par4).biomeName; par1FontRenderer.drawStringWithShadow(fpsString, par3, par4, par5); } }
-
En effet, ça vient que tu sors des fonctions de nul part …
Ta fonction actionPerformed n’a jamais appelé.Il faut passer par des event, comme pour le reste :
@SubscribeEvent public void onActionPerformed(ActionPerformedEvent.Pre event) { if (event.gui instanceof GuiMainMenu) { if(event.button.id == 32) { Desktop.getDesktop().browse(new URI("http://www.minecraftforgefrance.fr/")); } else if(event.button.id == 60) { FMLClientHandler.instance().setupServerList(); FMLClientHandler.instance().connectToServer(this, new ServerData("62.210.62.194", "10048")) } } }
-
Merci Beaucoup
mais pour le site sa marche mais pour le boutons rejoindre le serveur sa crash
Crash Report
:[18:36:27] [main/INFO] [GradleStart]: Extra: [] [18:36:28] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Eric/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [18:36:28] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [18:36:28] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [18:36:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [18:36:28] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [18:36:28] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading [18:36:28] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_71, running on Windows 8.1:x86:6.3, installed at C:\Program Files (x86)\Java\jre1.8.0_71 [18:36:28] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [18:36:28] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [18:36:28] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [18:36:28] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [18:36:28] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:36:28] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [18:36:28] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:36:28] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:36:28] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:36:28] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [18:36:28] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [18:36:30] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [18:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [18:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [18:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:36:30] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [18:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [18:36:30] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [18:36:31] [main/INFO]: Setting user: Player931 [18:36:33] [Client thread/INFO]: LWJGL Version: 2.9.1 [18:36:33] [Client thread/INFO] [STDOUT]: [tv.twitch.StandardCoreAPI:<init>:16]: If on Windows, make sure to provide all of the necessary dll's as specified in the twitchsdk README. Also, make sure to set the PATH environment variable to point to the directory containing the dll's. [18:36:33] [Client thread/ERROR]: Couldn't initialize twitch stream [18:36:34] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ---- // Quite honestly, I wouldn't worry myself about that. Time: 10/04/16 18:36 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 8.1 (x86) version 6.3 Java Version: 1.8.0_71, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 968946776 bytes (924 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 350.12' Renderer: 'GeForce GTX 745/PCIe/SSE2' [18:36:34] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [18:36:34] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized [18:36:34] [Client thread/INFO] [FML]: Replaced 183 ore recipies [18:36:34] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [18:36:34] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [18:36:34] [Client thread/INFO] [FML]: Searching C:\Users\Eric\Desktop\EnderModMenu\eclipse\mods for mods [18:36:42] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [18:36:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, enderdeathMenu] at CLIENT [18:36:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, enderdeathMenu] at SERVER [18:36:43] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:enderdeathMenu [18:36:43] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [18:36:43] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [18:36:43] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [18:36:43] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [18:36:43] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:36:43] [Client thread/INFO] [FML]: Applying holder lookups [18:36:43] [Client thread/INFO] [FML]: Holder lookups applied [18:36:43] [Client thread/INFO] [FML]: Injecting itemstacks [18:36:43] [Client thread/INFO] [FML]: Itemstack injection complete [18:36:43] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:36:43] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [18:36:43] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [18:36:43] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:36:44] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [18:36:44] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:36:44] [Sound Library Loader/INFO]: Sound engine started [18:36:46] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas [18:36:46] [Client thread/INFO]: Created: 16x16 textures/items-atlas [18:36:46] [Client thread/INFO] [STDOUT]: [ed.enderdeathMenu.mod.ClientProxy:registerRender:8]: client [18:36:46] [Client thread/INFO] [FML]: Injecting itemstacks [18:36:46] [Client thread/INFO] [FML]: Itemstack injection complete [18:36:46] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [18:36:46] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:enderdeathMenu [18:36:46] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [18:36:46] [Client thread/INFO]: Created: 256x256 textures/items-atlas [18:36:46] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:36:46] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down… [18:36:47] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [18:36:47] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:36:47] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:36:47] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [18:36:47] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [18:36:47] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:36:47] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [18:36:47] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:36:47] [Sound Library Loader/INFO]: Sound engine started [18:38:43] [Client thread/INFO]: Connecting to 10048, 25565 [18:38:43] [Client thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.client.event.GuiScreenEvent$InitGuiEvent$Post@c8ee97: java.lang.ClassCastException: net.minecraft.client.multiplayer.GuiConnecting cannot be cast to net.minecraft.client.gui.GuiMainMenu at ed.enderdeathMenu.mod.GuiCustomMenu.onInitGuiEventAd(GuiCustomMenu.java:294) ~[GuiCustomMenu.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_8_GuiCustomMenu_onInitGuiEventAd_Post.invoke(.dynamic) ~[?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?] at net.minecraft.client.gui.GuiScreen.setWorldAndResolution(GuiScreen.java:296) [GuiScreen.class:?] at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:865) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:472) [FMLClientHandler.class:?] at cpw.mods.fml.client.FMLClientHandler.connectToServer(FMLClientHandler.java:845) [FMLClientHandler.class:?] at ed.enderdeathMenu.mod.GuiCustomMenu.onActionPerformed(GuiCustomMenu.java:346) [GuiCustomMenu.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_GuiCustomMenu_onActionPerformed_Pre.invoke(.dynamic) [?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) [ASMEventHandler.class:?] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?] at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:248) [GuiScreen.class:?] at net.minecraft.client.gui.GuiMainMenu.mouseClicked(GuiMainMenu.java:566) [GuiMainMenu.class:?] at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:344) [GuiScreen.class:?] at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:313) [GuiScreen.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1731) [Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_71] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] [18:38:43] [Client thread/ERROR] [FML]: Index: 1 Listeners: [18:38:43] [Client thread/ERROR] [FML]: 0: NORMAL [18:38:43] [Client thread/ERROR] [FML]: 1: ASM: ed.enderdeathMenu.mod.GuiCustomMenu@1adede9 onInitGuiEventAd(Lnet/minecraftforge/client/event/GuiScreenEvent$InitGuiEvent$Post;)V [18:38:43] [Client thread/ERROR] [FML]: 2: ASM: ed.enderdeathMenu.mod.GuiCustomMenu@1adede9 onInitGuiEventA(Lnet/minecraftforge/client/event/GuiScreenEvent$InitGuiEvent$Post;)V [18:38:43] [Client thread/ERROR] [FML]: 3: ASM: ed.enderdeathMenu.mod.GuiCustomMenu@1adede9 onInitGuiEven(Lnet/minecraftforge/client/event/GuiScreenEvent$InitGuiEvent$Post;)V [18:38:43] [Client thread/ERROR] [FML]: 4: ASM: ed.enderdeathMenu.mod.GuiCustomMenu@1adede9 onInitGuiEventF(Lnet/minecraftforge/client/event/GuiScreenEvent$InitGuiEvent$Post;)V [18:38:43] [Client thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.client.event.GuiScreenEvent$ActionPerformedEvent$Pre@167ad09: java.lang.ClassCastException: net.minecraft.client.multiplayer.GuiConnecting cannot be cast to net.minecraft.client.gui.GuiMainMenu at ed.enderdeathMenu.mod.GuiCustomMenu.onInitGuiEventAd(GuiCustomMenu.java:294) ~[GuiCustomMenu.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_8_GuiCustomMenu_onInitGuiEventAd_Post.invoke(.dynamic) ~[?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?] at net.minecraft.client.gui.GuiScreen.setWorldAndResolution(GuiScreen.java:296) ~[GuiScreen.class:?] at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:865) ~[Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:472) ~[FMLClientHandler.class:?] at cpw.mods.fml.client.FMLClientHandler.connectToServer(FMLClientHandler.java:845) ~[FMLClientHandler.class:?] at ed.enderdeathMenu.mod.GuiCustomMenu.onActionPerformed(GuiCustomMenu.java:346) ~[GuiCustomMenu.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_GuiCustomMenu_onActionPerformed_Pre.invoke(.dynamic) ~[?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?] at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:248) [GuiScreen.class:?] at net.minecraft.client.gui.GuiMainMenu.mouseClicked(GuiMainMenu.java:566) [GuiMainMenu.class:?] at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:344) [GuiScreen.class:?] at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:313) [GuiScreen.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1731) [Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_71] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] [18:38:43] [Client thread/ERROR] [FML]: Index: 1 Listeners: [18:38:43] [Client thread/ERROR] [FML]: 0: NORMAL [18:38:43] [Client thread/ERROR] [FML]: 1: ASM: ed.enderdeathMenu.mod.GuiCustomMenu@1adede9 onActionPerformed(Lnet/minecraftforge/client/event/GuiScreenEvent$ActionPerformedEvent$Pre;)V [18:38:43] [Client thread/ERROR] [FML]: 2: ASM: ed.enderdeathMenu.mod.GuiCustomMenu@1adede9 onActionPerformedA(Lnet/minecraftforge/client/event/GuiScreenEvent$ActionPerformedEvent$Pre;)V [18:38:43] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Updating screen events at net.minecraft.client.Minecraft.runTick(Minecraft.java:1745) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_71] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: java.lang.ClassCastException: net.minecraft.client.multiplayer.GuiConnecting cannot be cast to net.minecraft.client.gui.GuiMainMenu at ed.enderdeathMenu.mod.GuiCustomMenu.onInitGuiEventAd(GuiCustomMenu.java:294) ~[GuiCustomMenu.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_8_GuiCustomMenu_onInitGuiEventAd_Post.invoke(.dynamic) ~[?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) ~[EventBus.class:?] at net.minecraft.client.gui.GuiScreen.setWorldAndResolution(GuiScreen.java:296) ~[GuiScreen.class:?] at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:865) ~[Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:472) ~[FMLClientHandler.class:?] at cpw.mods.fml.client.FMLClientHandler.connectToServer(FMLClientHandler.java:845) ~[FMLClientHandler.class:?] at ed.enderdeathMenu.mod.GuiCustomMenu.onActionPerformed(GuiCustomMenu.java:346) ~[GuiCustomMenu.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_GuiCustomMenu_onActionPerformed_Pre.invoke(.dynamic) ~[?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) ~[EventBus.class:?] at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:248) ~[GuiScreen.class:?] at net.minecraft.client.gui.GuiMainMenu.mouseClicked(GuiMainMenu.java:566) ~[GuiMainMenu.class:?] at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:344) ~[GuiScreen.class:?] at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:313) ~[GuiScreen.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1731) ~[Minecraft.class:?] … 11 more [18:38:43] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // Shall we play a game? Time: 10/04/16 18:38 Description: Updating screen events java.lang.ClassCastException: net.minecraft.client.multiplayer.GuiConnecting cannot be cast to net.minecraft.client.gui.GuiMainMenu at ed.enderdeathMenu.mod.GuiCustomMenu.onInitGuiEventAd(GuiCustomMenu.java:294) at cpw.mods.fml.common.eventhandler.ASMEventHandler_8_GuiCustomMenu_onInitGuiEventAd_Post.invoke(.dynamic) at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) at net.minecraft.client.gui.GuiScreen.setWorldAndResolution(GuiScreen.java:296) at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:865) at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:472) at cpw.mods.fml.client.FMLClientHandler.connectToServer(FMLClientHandler.java:845) at ed.enderdeathMenu.mod.GuiCustomMenu.onActionPerformed(GuiCustomMenu.java:346) at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_GuiCustomMenu_onActionPerformed_Pre.invoke(.dynamic) at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:248) at net.minecraft.client.gui.GuiMainMenu.mouseClicked(GuiMainMenu.java:566) at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:344) at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:313) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1731) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) at net.minecraft.client.Minecraft.run(Minecraft.java:962) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at ed.enderdeathMenu.mod.GuiCustomMenu.onInitGuiEventAd(GuiCustomMenu.java:294) at cpw.mods.fml.common.eventhandler.ASMEventHandler_8_GuiCustomMenu_onInitGuiEventAd_Post.invoke(.dynamic) at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) at net.minecraft.client.gui.GuiScreen.setWorldAndResolution(GuiScreen.java:296) at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:865) at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:472) at cpw.mods.fml.client.FMLClientHandler.connectToServer(FMLClientHandler.java:845) at ed.enderdeathMenu.mod.GuiCustomMenu.onActionPerformed(GuiCustomMenu.java:346) at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_GuiCustomMenu_onActionPerformed_Pre.invoke(.dynamic) at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:248) at net.minecraft.client.gui.GuiMainMenu.mouseClicked(GuiMainMenu.java:566) at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:344) at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:313) -- Affected screen -- Details: Screen name: net.minecraft.client.multiplayer.GuiConnecting Stacktrace: at net.minecraft.client.Minecraft.runTick(Minecraft.java:1731) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) at net.minecraft.client.Minecraft.run(Minecraft.java:962) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 8.1 (x86) version 6.3 Java Version: 1.8.0_71, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 973659840 bytes (928 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHIJA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) UCHIJA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) UCHIJA enderdeathMenu{1.0.0} [enderdeathMenu] (bin) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 350.12' Renderer: 'GeForce GTX 745/PCIe/SSE2' Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 745/PCIe/SSE2 GL version 4.5.0 NVIDIA 350.12, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) [18:38:44] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Eric\Desktop\EnderModMenu\eclipse\.\crash-reports\crash-2016-04-10_18.38.43-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release ```</init>
-
@SubscribeEvent public void onInitGuiEventAd(InitGuiEvent.Post event) { int i = event.gui.height /2 + 15; event.buttonList.add(new GuiButton(32, event.gui.width / 2 - 55, i + 24 * 2, 100, 20, "Site internet") { @Override public void mouseReleased(int x, int y) { } }); ObfuscationReflectionHelper.setPrivateValue(GuiMainMenu.class, (GuiMainMenu) event.gui, "Bienvenue sur EnderDeath", "splashText", "field_73975_c"); // On modifie le SplashText }
Il manque la condition au début de la fonction pour vérifier quel Gui tu veux modifier, c’est marqué dans le tuto il me semble