Crash register Event



  • Bonjour je r'encontre un soucis avec un le register d'une class event j'ai un crash:

    Crash report:

    [14:25:42] [main/INFO] [GradleStart]: Extra: []
    [14:25:42] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Admin/.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]
    [14:25:42] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
    [14:25:42] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading
    [14:25:42] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jdk1.8.0_45\jre
    [14:25:42] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [14:25:42] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
    [14:25:42] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [14:25:42] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [14:25:42] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [14:25:42] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
    [14:25:42] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [14:25:43] [main/INFO]: Setting user: Player863
    [14:25:43] [Client thread/INFO]: LWJGL Version: 2.9.1
    [14:25:44] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
    [14:25:44] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized
    [14:25:44] [Client thread/INFO] [FML]: Replaced 183 ore recipies
    [14:25:44] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
    [14:25:44] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Desktop\Modding\AltisMineMod\eclipse\mods for mods
    [14:25:45] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [14:25:45] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, amm] at CLIENT
    [14:25:45] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, amm] at SERVER
    [14:25:45] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§aAltisMineMod
    [14:25:45] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [14:25:45] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
    [14:25:45] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [14:25:45] [Client thread/INFO] [FML]: Applying holder lookups
    [14:25:45] [Client thread/INFO] [FML]: Holder lookups applied
    [14:25:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [14:25:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
    [14:25:46] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [14:25:46] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [14:25:46] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [14:25:46] [Client thread/WARN]: File amm:sounds/AK74Shoot.ogg does not exist, cannot add it to event amm:AK74Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/BARReload.ogg does not exist, cannot add it to event amm:BARReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/BazookaReload.ogg does not exist, cannot add it to event amm:BazookaReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/BrenReload.ogg does not exist, cannot add it to event amm:BrenReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/BrowningReload.ogg does not exist, cannot add it to event amm:BrowningReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/ColtReload.ogg does not exist, cannot add it to event amm:ColtReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/DesertEagleShoot.ogg does not exist, cannot add it to event amm:DesertEagleShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/DP28Reload.ogg does not exist, cannot add it to event amm:DP28Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:LugerReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:L96Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1CarbineReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M9Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M14Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M21Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M60Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M249Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1014Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1014Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MG42Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MiniUziShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP5Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP40Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MP44Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:P90Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:PPSHReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:R700Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Reload1
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RPDShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RPGShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SkorpionShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SpringfieldReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:StenReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:ThompsonReload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:TT33Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:USPShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:W1200Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:W1200Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GlockShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SG550Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:AT4Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MakarovShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:SIGP229Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:R870Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:FNSCARShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Helicopter1
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:Helicopter2
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:HelicopterStart
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:JetEngine1
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:JetEngine2
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RocketFire1
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:RocketFire2
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:BulletHit
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunWarmup
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunSpin
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:MinigunCooldown
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1887Shoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:M1887Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GrenadeLauncherShoot
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GL6Reload
    [14:25:46] [Client thread/WARN]: File amm:sounds/.ogg does not exist, cannot add it to event amm:GrenadeLauncherReload
    [14:25:46] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/.png
    java.io.FileNotFoundException: minecraft:textures/blocks/.png
    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
    at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
    at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
    at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
    at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:582) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    [14:25:46] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [14:25:46] [Sound Library Loader/INFO]: Sound engine started
    [14:25:46] [Client thread/ERROR]: Using missing texture, unable to load amm:textures/blocks/Perceuse.png
    java.io.FileNotFoundException: amm:textures/blocks/Perceuse.png
    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
    at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
    at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
    at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
    at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:582) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    [14:25:46] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [14:25:46] [Client thread/INFO]: Created: 4096x2048 textures/items-atlas
    [14:25:46] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
    [14:25:46] [Client thread/ERROR] [FML]: 
    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
    FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
    Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
    amm{1.0} [§aAltisMineMod] (bin) Unloaded->Constructed->Pre-initialized->Errored
    [14:25:46] [Client thread/ERROR] [FML]: The following problems were captured during this phase
    [14:25:46] [Client thread/ERROR] [FML]: Caught exception from amm
    java.lang.IllegalArgumentException: Method public void com.AltisMine.mod.Heal.onEntityDamage(net.minecraft.util.EntityDamageSource) has @SubscribeEvent annotation, but takes a argument that is not an Event class net.minecraft.util.EntityDamageSource
    at cpw.mods.fml.common.eventhandler.EventBus.register(EventBus.java:82) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
    at com.AltisMine.mod.AltisMineMod.init(AltisMineMod.java:564) ~[bin/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) [Loader.class:?]
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    [14:25:46] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
    // Hi. I'm Minecraft, and I'm a crashaholic.
    
    Time: 06/02/16 14:25
    Description: Initializing game
    
    java.lang.IllegalArgumentException: Method public void com.AltisMine.mod.Heal.onEntityDamage(net.minecraft.util.EntityDamageSource) has @SubscribeEvent annotation, but takes a argument that is not an Event class net.minecraft.util.EntityDamageSource
    at cpw.mods.fml.common.eventhandler.EventBus.register(EventBus.java:82)
    at com.AltisMine.mod.AltisMineMod.init(AltisMineMod.java:564)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)
    at net.minecraft.client.Minecraft.run(Minecraft.java:931)
    at net.minecraft.client.main.Main.main(Main.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    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 cpw.mods.fml.common.eventhandler.EventBus.register(EventBus.java:82)
    at com.AltisMine.mod.AltisMineMod.init(AltisMineMod.java:564)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)
    
    -- Initialization --
    Details:
    Stacktrace:
    at net.minecraft.client.Minecraft.run(Minecraft.java:931)
    at net.minecraft.client.main.Main.main(Main.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    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 7 (x86) version 6.1
    Java Version: 1.8.0_45, Oracle Corporation
    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
    Memory: 661369952 bytes (630 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 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.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active
    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
    FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
    Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
    amm{1.0} [§aAltisMineMod] (bin) Unloaded->Constructed->Pre-initialized->Errored
    Launched Version: 1.7.10
    LWJGL: 2.9.1
    OpenGL: GeForce GTX 960/PCIe/SSE2 GL version 4.5.0 NVIDIA 361.43, 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: Français (France)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Anisotropic Filtering: Off (1)
    [14:25:46] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Admin\Desktop\Modding\AltisMineMod\eclipse\.\crash-reports\crash-2016-02-06_14.25.46-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
    
    

    Class event:

    package com.AltisMine.mod;
    
    import cpw.mods.fml.common.eventhandler.SubscribeEvent;
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import net.minecraft.entity.Entity;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.potion.Potion;
    import net.minecraft.potion.PotionEffect;
    import net.minecraft.util.EntityDamageSource;
    
    public class Heal {
    @SubscribeEvent
    public void onEntityDamage(EntityDamageSource event) {
    
    Entity en = event.getEntity();
    
    if (en instanceof EntityPlayer){
    EntityPlayer p = (EntityPlayer)event.getEntity();
    if(p.getHealth() <= 5){
             p.addPotionEffect(new PotionEffect(Potion.harm.id, 1, 920));
    }else if(p.getHealth() == 4){
    p.addPotionEffect(new PotionEffect(Potion.harm.id, 1, 920));
    p.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 1, 920));
    }
    }
    
    }
    
    }
    
    

    Class principale:

    @EventHandler
    public void init(FMLInitializationEvent event) {
    proxy.init(event);
    NetworkRegistry.INSTANCE.registerGuiHandler(INSTANCE, proxy); // Ligne 491
            MinecraftForge.EVENT_BUS.register(new Heal());
    
    }
    

    Merci d'avance: )


  • Rédacteurs

    Le crash report indique que EntityDamageSource c'est pas un event, et ce n'en est pas un effectivement, pour la liste des event vois ce lien : http://www.minecraftforgefrance.fr/forge-events.php

    "java.lang.IllegalArgumentException: Method public void com.AltisMine.mod.Heal.onEntityDamage(net.minecraft.util.EntityDamageSource) has @SubscribeEvent annotation, but takes a argument that is not an Event class net.minecraft.util.EntityDamageSource"



  • merci



  • J'ai trouver LivingHurtEvent je pense que c'est le mieux.


  • Administrateurs

    En effet ça fonctionnera mieux avec LivingHurtEvent