Hello there ! J’ai plusieurs erreurs sur ma classe principale que je vais vous lister.
Donc je vous transmet le contenu du fichier de ma classe (ModTutoriel.java):
| package fr.omgcraft.pineapple.tutoriel.common; |
| |
| import cpw.mods.fml.common.Mod; |
| import fr.omgcraft.pineapple.tutoriel.proxy.CommonProxy; |
| |
| @Mod(modid = "modtutoriel", name = "Mod Tutoriel", version = "1.0.0") |
| public class ModTutoriel |
| { |
| @Instance("modtutoriel") |
| public static ModTutoriel instance; |
| public static final String MODID = "modtutoriel"; |
| |
| @SidedProxy(clientSide = "fr.omgcraft.pineapple.tutoriel.proxy.ClientProxy", serverSide = "fr.omgcraft.pineapple.tutoriel.proxy.CommonProxy") |
| public static CommonProxy proxy; |
| |
| @eventHandler |
| public void preInit(FMLPreInitializationEvent event) |
| { |
| |
| } |
| |
| @eventHandler |
| public void init(FMLInitializationEvent event) |
| { |
| proxy.registerRender(); |
| } |
| |
| @eventHandler |
| public void postInit(FMLPostInitializationEvent event) |
| { |
| |
| } |
| } |
| |
Voici également le contenu de mes deux autres fichiers :
ClientProxy.java
| package fr.omgcraft.pineapple.tutoriel.proxy; |
| |
| public class ClientProxy extends CommonProxy |
| { |
| @Override |
| public void registerRender() |
| { |
| System.out.println("méthode côté client"); |
| } |
| } |
| |
CommonProxy.java
| package fr.omgcraft.pineapple.tutoriel.proxy; |
| |
| public class CommonProxy |
| { |
| public void registerRender() |
| { |
| System.out.println("méthode côté serveur"); |
| } |
| } |
| |
Donc, voici la liste de mes erreurs :
| Description Resource Path Location Type |
| Instance cannot be resolved to a type ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 9 Java Problem |
| SidedProxy cannot be resolved to a type ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 13 Java Problem |
| The attribute value is undefined for the annotation type Instance ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 9 Java Problem |
| The attribute serverSide is undefined for the annotation type SidedProxy ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 13 Java Problem |
| The attribute clientSide is undefined for the annotation type SidedProxy ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 13 Java Problem |
| FMLPreInitializationEvent cannot be resolved to a type ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 17 Java Problem |
| eventHandler cannot be resolved to a type ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 16 Java Problem |
| FMLInitializationEvent cannot be resolved to a type ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 23 Java Problem |
| eventHandler cannot be resolved to a type ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 22 Java Problem |
| FMLPostInitializationEvent cannot be resolved to a type ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 29 Java Problem |
| eventHandler cannot be resolved to a type ModTutoriel.java /Minecraft/src/main/java/fr/omgcraft/pineapple/tutoriel/common line 28 Java Problem |
| |
On dirait que j’ai loupé quelque chose dans la configuration de Forge ou Eclipse, mais j’ai du mal à trouver ce dont il peut bien s’agir.
Ah, et j’y pense mais j’ai essayé de lancer malgré tout la compilation, je vous transmet le contenu de la console java :
| [19:15:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker |
| [19:15:19] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker |
| [19:15:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker |
| java.io.IOException: Server returned HTTP response code: 403 for URL: https://authserver.mojang.com/authenticate |
| at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) |
| at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) |
| at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) |
| at cpw.mods.fml.common.launcher.Yggdrasil.login(Yggdrasil.java:108) |
| at cpw.mods.fml.common.launcher.FMLTweaker.acceptOptions(FMLTweaker.java:91) |
| at net.minecraft.launchwrapper.Launch.launch(Launch.java:113) |
| at net.minecraft.launchwrapper.Launch.main(Launch.java:28) |
| [19:15:20] [main/INFO] [FML]: Forge Mod Loader version 7.2.209.1112 for Minecraft 1.7.2 loading |
| [19:15:20] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre8 |
| [19:15:20] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation |
| [19:15:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker |
| [19:15:20] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker |
| [19:15:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker |
| [19:15:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker |
| [19:15:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper |
| [19:15:20] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! |
| [19:15:20] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Travail/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1112/forgeSrc-1.7.2-10.12.1.1112.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! |
| [19:15:20] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! |
| [19:15:20] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Travail/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1112/forgeSrc-1.7.2-10.12.1.1112.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it |
| [19:15:20] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing |
| [19:15:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper |
| [19:15:20] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker |
| [19:15:20] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} |
| [19:15:21] [main/ERROR] [LaunchWrapper]: Unable to launch |
| java.lang.reflect.InvocationTargetException |
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] |
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] |
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] |
| at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05] |
| at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] |
| at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] |
| Caused by: joptsimple.MissingRequiredOptionException: Missing required option(s) ['accessToken'] |
| at joptsimple.OptionParser.ensureRequiredOptions(OptionParser.java:447) ~[OptionParser.class:?] |
| at joptsimple.OptionParser.parse(OptionParser.java:437) ~[OptionParser.class:?] |
| at net.minecraft.client.main.Main.main(Main.java:47) ~[Main.class:?] |
| … 6 more |
| Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release |
| |
En espérant vous avoir fourni les informations nécessaires à la résolution de mon problème 
A bientôt !
Kahash