MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Anti Xray?

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    50 Messages 8 Publieurs 11.1k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • leo01418L Hors-ligne
      leo01418
      dernière édition par

      Au faite je pense que je suis *** j’ai re regardé les commentaire de robin et je n’avais pas remarqué que j’avais des tas de chose fausse 
      comme

      private void test()
      {
      if(mc.thePlayer != null)
      {
          mc.thePlayer.setDead();
      }
      

      Merci à toi de me faire prendre compte et excuse à Robin de n’avoir pas fait attention
      Merci  😄

      Voila ma signature

      1 réponse Dernière réponse Répondre Citer 0
      • DeletedD Hors-ligne
        Deleted
        dernière édition par

        Résolu ?

        1 réponse Dernière réponse Répondre Citer 0
        • leo01418L Hors-ligne
          leo01418
          dernière édition par

          Attend je test ^^

          Edit:Sa fais comme l’autre fois le jeu crash sans érreur 
          Ma classe:

          package ed.enderdeath.mod.common;
          
          import java.io.IOException;
          
          import cpw.mods.fml.common.eventhandler.SubscribeEvent;
          import cpw.mods.fml.common.gameevent.TickEvent.Phase;
          import cpw.mods.fml.common.gameevent.TickEvent.RenderTickEvent;
          import cpw.mods.fml.relauncher.Side;
          import cpw.mods.fml.relauncher.SideOnly;
          import net.minecraft.client.Minecraft;
          import net.minecraft.client.renderer.texture.ITextureObject;
          import net.minecraft.client.renderer.texture.SimpleTexture;
          import net.minecraft.client.renderer.texture.TextureAtlasSprite;
          import net.minecraft.client.renderer.texture.TextureUtil;
          import net.minecraft.init.Blocks;
          import net.minecraft.util.ResourceLocation;
          
          @SideOnly(Side.CLIENT)
          public class TickHandler
          {
          
          private Minecraft mc;
          
          public TickHandler(Minecraft mc) 
          {
          
          this.mc = mc;
          
          if(TickHandler.hasIllegalTexture())
            Minecraft.getMinecraft().shutdown();
          }
          
          @SubscribeEvent
          public void onRenderTick(RenderTickEvent event) 
          {
          
          if (event.phase == Phase.START) 
          {
          
          test();
          
          }
          
          }
          private void test()
          {
          if(mc.thePlayer != null)
          {
          
          }
          
          }
          public static boolean hasIllegalTexture()
          {
              ResourceLocation r = new ResourceLocation("minecraft:textures/blocks/stone.png");
              ITextureObject textureObject = Minecraft.getMinecraft().getTextureManager().getTexture(r );
          /*si la texture est transparenet*/
              if(textureObject == null)
              {
          /*la je n'ai pas compris*/
                  textureObject = new SimpleTexture(r);
          /*pour load la texture?*/
                  Minecraft.getMinecraft().getTextureManager().loadTexture(r, textureObject);
              }
          /*id de la texture*/
              int id = textureObject.getGlTextureId();
              try
              {
                  int[] textureData = TextureUtil.readImageData(Minecraft.getMinecraft().getResourceManager(), r);
                  for(int color : textureData)
                  {
                      int alpha = color >> 24 & 0xFF;
                      if(alpha != 255)
          /*si la texture est = 255 on laisse*/
                      {
                          return true;
                      }
                  }
              }
              catch(IOException e)
              {
                  e.printStackTrace();
              }
              return false;
          }
          
          }
          

          Voila ma signature

          1 réponse Dernière réponse Répondre Citer 0
          • robin4002R Hors-ligne
            robin4002 Moddeurs confirmés Rédacteurs Administrateurs
            dernière édition par

            Tu n’as toujours pas compris mon dernier message.
            Je t’ai dit que ton check n’était pas au bon endroit …
            ça fonctionnera mieux comme ceci :

            package ed.enderdeath.mod.common;
            
            import java.io.IOException;
            
            import cpw.mods.fml.common.eventhandler.SubscribeEvent;
            import cpw.mods.fml.common.gameevent.TickEvent.Phase;
            import cpw.mods.fml.common.gameevent.TickEvent.RenderTickEvent;
            import cpw.mods.fml.relauncher.Side;
            import cpw.mods.fml.relauncher.SideOnly;
            import net.minecraft.client.Minecraft;
            import net.minecraft.client.renderer.texture.ITextureObject;
            import net.minecraft.client.renderer.texture.SimpleTexture;
            import net.minecraft.client.renderer.texture.TextureAtlasSprite;
            import net.minecraft.client.renderer.texture.TextureUtil;
            import net.minecraft.init.Blocks;
            import net.minecraft.util.ResourceLocation;
            
            @SideOnly(Side.CLIENT)
            public class TickHandler
            {
            
                private Minecraft mc;
            
                public TickHandler(Minecraft mc)
                {
                    this.mc = mc;
                }
            
                @SubscribeEvent
                public void onRenderTick(RenderTickEvent event)
                {
                    if(event.phase == Phase.START)
                    {
                        checkTexture();
                    }
                }
            
                private void checkTexture()
                {
                    if(mc.thePlayer != null)
                    {
                         if(TickHandler.hasIllegalTexture())
                         {
                               System.err.println("texture interdite détecté !");
            
                               Minecraft.getMinecraft().shutdown();
                         }
            
                    }
                }
            
                public static boolean hasIllegalTexture()
                {
                    ResourceLocation r = new ResourceLocation("minecraft:textures/blocks/stone.png");
                    ITextureObject textureObject = Minecraft.getMinecraft().getTextureManager().getTexture(r);
                    if(textureObject == null)
                    {
                        textureObject = new SimpleTexture(r);
                        Minecraft.getMinecraft().getTextureManager().loadTexture(r, textureObject);
                    }
                    int id = textureObject.getGlTextureId();
                    try
                    {
                        int[] textureData = TextureUtil.readImageData(Minecraft.getMinecraft().getResourceManager(), r);
                        for(int color : textureData)
                        {
                            int alpha = color >> 24 & 0xFF;
                            if(alpha != 255)
                            {
                                return true;
                            }
                        }
                    }
                    catch(IOException e)
                    {
                        e.printStackTrace();
                    }
                    return false;
                }
            }
            
            1 réponse Dernière réponse Répondre Citer 0
            • leo01418L Hors-ligne
              leo01418
              dernière édition par

              Merci sa marche mais je peux pas mettre en RESOLU car je suis pas l’auteur de ce sujet je l’ai juste poursuivi

              Excuse Encore et Merci à tout le monde  😄  🙂 😉

              Voila ma signature

              1 réponse Dernière réponse Répondre Citer 0
              • robin4002R Hors-ligne
                robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                dernière édition par

                Oui je vais la mettre en résolu, la solution avait déjà été donné.

                1 réponse Dernière réponse Répondre Citer 0
                • leo01418L Hors-ligne
                  leo01418
                  dernière édition par

                  Excusez de revenir sur ce vieux sujet mais le serveur crash à cause de cette ligne

                  public static final Minecraft mc = Minecraft.getMinecraft();
                  
                  [16:35:52] [main/INFO] [GradleStart]: Extra: []
                  [16:35:52] [main/INFO] [GradleStart]: Running with arguments: [–tweakClass, cpw.mods.fml.common.launcher.FMLServerTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                  [16:35:52] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker
                  [16:35:52] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker
                  [16:35:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                  [16:35:52] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLServerTweaker
                  [16:35:52] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
                  [16:35:52] [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
                  [16:35:52] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                  [16:35:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                  [16:35:52] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                  [16:35:52] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                  [16:35:52] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                  [16:35:52] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                  [16:35:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                  [16:35:52] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                  [16:35:52] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                  [16:35:52] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                  [16:35:53] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                  [16:35:54] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                  [16:35:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                  [16:35:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                  [16:35:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                  [16:35:54] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                  [16:35:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                  [16:35:54] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer}
                  [16:35:56] [main/WARN] [FML]: =============================================================
                  [16:35:56] [main/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML!
                  [16:35:56] [main/WARN] [FML]: Offendor: net/minecraft/server/gui/MinecraftServerGui$1.windowClosing(Ljava/awt/event/WindowEvent;)V
                  [16:35:56] [main/WARN] [FML]: Use FMLCommonHandler.exitJava instead
                  [16:35:56] [main/WARN] [FML]: =============================================================
                  [16:35:56] [Server thread/INFO]: Starting minecraft server version 1.7.10
                  [16:35:56] [Server thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                  [16:35:56] [Server thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized
                  [16:35:56] [Server thread/INFO] [FML]: Replaced 183 ore recipies
                  [16:35:56] [Server thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                  [16:35:56] [Server thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                  [16:35:56] [Server thread/INFO] [FML]: Searching C:\Users\Eric\Desktop\EnderMod\eclipse\mods for mods
                  [16:36:02] [Server thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                  [16:36:03] [Server thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, enderdeath] at CLIENT
                  [16:36:03] [Server thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, enderdeath] at SERVER
                  [16:36:03] [Server thread/ERROR] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
                  [16:36:03] [Server thread/ERROR] [FML]: 
                  States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
                  UC mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
                  UC FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
                  UC Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
                  UE enderdeath{1.0} [leo01418] (bin) 
                  [16:36:03] [Server thread/ERROR] [FML]: The following problems were captured during this phase
                  [16:36:03] [Server thread/ERROR] [FML]: Caught exception from enderdeath
                  java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
                  at ed.enderdeath.mod.common.enderdeath.<clinit>(enderdeath.java:446) ~[enderdeath.class:?]
                  at java.lang.Class.forName0(Native Method) ~[?:1.8.0_71]
                  at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_71]
                  at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:440) ~[FMLModContainer.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 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:212) ~[LoadController.class:?]
                  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.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 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:119) [LoadController.class:?]
                  at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) [Loader.class:?]
                  at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87) [FMLServerHandler.class:?]
                  at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:314) [FMLCommonHandler.class:?]
                  at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:120) [DedicatedServer.class:?]
                  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445) [MinecraftServer.class:?]
                  at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                  Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
                  at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
                  at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_71]
                  at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_71]
                  … 31 more
                  Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER
                  at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]
                  at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
                  at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
                  at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_71]
                  at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_71]
                  … 31 more
                  [16:36:03] [Server thread/ERROR]: Encountered an unexpected exception
                  cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
                  
                  at cpw.mods.fml.common.LoadController.transition(LoadController.java:163) ~[LoadController.class:?]
                  at cpw.mods.fml.common.Loader.loadMods(Loader.java:544) ~[Loader.class:?]
                  at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87) ~[FMLServerHandler.class:?]
                  at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:314) ~[FMLCommonHandler.class:?]
                  at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:120) ~[DedicatedServer.class:?]
                  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445) [MinecraftServer.class:?]
                  at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                  Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
                  at ed.enderdeath.mod.common.enderdeath.<clinit>(enderdeath.java:446) ~[enderdeath.class:?]
                  at java.lang.Class.forName0(Native Method) ~[?:1.8.0_71]
                  at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_71]
                  at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:440) ~[FMLModContainer.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 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:212) ~[LoadController.class:?]
                  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.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 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:119) ~[LoadController.class:?]
                  at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) ~[Loader.class:?]
                  … 5 more
                  Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
                  at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
                  at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_71]
                  at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_71]
                  at ed.enderdeath.mod.common.enderdeath.<clinit>(enderdeath.java:446) ~[enderdeath.class:?]
                  at java.lang.Class.forName0(Native Method) ~[?:1.8.0_71]
                  at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_71]
                  at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:440) ~[FMLModContainer.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 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:212) ~[LoadController.class:?]
                  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.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 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:119) ~[LoadController.class:?]
                  at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) ~[Loader.class:?]
                  … 5 more
                  Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER
                  at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50) ~[forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar:?]
                  at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
                  at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
                  at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_71]
                  at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_71]
                  at ed.enderdeath.mod.common.enderdeath.<clinit>(enderdeath.java:446) ~[enderdeath.class:?]
                  at java.lang.Class.forName0(Native Method) ~[?:1.8.0_71]
                  at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_71]
                  at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:440) ~[FMLModContainer.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 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:212) ~[LoadController.class:?]
                  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.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 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:119) ~[LoadController.class:?]
                  at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) ~[Loader.class:?]
                  … 5 more
                  [16:36:03] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Eric\Desktop\EnderMod\eclipse\.\crash-reports\crash-2016-04-11_16.36.03-server.txt
                  [16:36:03] [Server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first.
                  [16:36:03] [Server thread/INFO] [FML]: Applying holder lookups
                  [16:36:03] [Server thread/INFO] [FML]: Holder lookups applied
                  [16:36:03] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.
                  [16:36:03] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.
                  Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
                  
                  ```</clinit></clinit></clinit></clinit>

                  Voila ma signature

                  1 réponse Dernière réponse Répondre Citer 0
                  • DeletedD Hors-ligne
                    Deleted
                    dernière édition par

                    Sais-tu lire un crash-report ? C’est utile, voire carrément indispensable quand il s’agit de résoudre de si bêtes erreurs 🙂

                    Indice : Cette ligne-là est la + importante dans ton Crash-report :
                    [font=monospacejava][font=monospace.][font=monospacelang][font=monospace.][font=monospaceNoClassDefFoundError][font=monospace:][font=monospace net][font=monospace/][font=monospaceminecraft][font=monospace/][font=monospaceclient][font=monospace/][font=monospaceMinecraft]

                    [color=#000000Elle ][font=Arialveut juste tout dire…]

                    1 réponse Dernière réponse Répondre Citer 0
                    • leo01418L Hors-ligne
                      leo01418
                      dernière édition par

                      Non je ne sais pas le lire

                      Eddit: j’éssaye  😉
                      re Eddit:java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
                      net/minecraft/client/minecraft est juste pour le client

                      Voila ma signature

                      1 réponse Dernière réponse Répondre Citer 0
                      • robin4002R Hors-ligne
                        robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                        dernière édition par

                        Minecraft.getMinecraft() est une classe client seulement, il est donc normal qu’elle ne soit pas trouvé.
                        Il faut enregistrer ta classe coté client seulement.

                        1 réponse Dernière réponse Répondre Citer 0
                        • leo01418L Hors-ligne
                          leo01418
                          dernière édition par

                          Mais Dans ce cas comment ma classe est pour enregistré tout les items,block et tout sa ne va pas causé un autre porblèmes que je met ma classe en SideOnly(Side.CLIENT)?

                          Voila ma signature

                          1 réponse Dernière réponse Répondre Citer 0
                          • robin4002R Hors-ligne
                            robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                            dernière édition par

                            Tu mets le code dans une autre classe.
                            Ou tu mets une condition :
                            if(FMLCommonHandler.instance().getSide().isClient())

                            1 réponse Dernière réponse Répondre Citer 0
                            • leo01418L Hors-ligne
                              leo01418
                              dernière édition par

                              dans le client proxy sa passeras?

                              Re Réssolu  😉

                              Voila ma signature

                              1 réponse Dernière réponse Répondre Citer 0
                              • MinantcraftM Hors-ligne
                                Minantcraft
                                dernière édition par

                                @‘robin4002’:

                                s’amuser à modifier le mod via ASM

                                C’est quoi ASM? Où le télécharger? Comment l’utiliser?

                                Minantcraft ;)

                                >! Binary Dimension
                                [url=https://minecraft.cu…

                                1 réponse Dernière réponse Répondre Citer 0
                                • robin4002R Hors-ligne
                                  robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                                  dernière édition par

                                  ASM est une bibliothèque Java permettant de manipuler le byte code.
                                  https://www.minecraftforgefrance.fr/showthread.php?tid=3740

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • 1
                                  • 2
                                  • 3
                                  • 1 / 3
                                  • Premier message
                                    Dernier message
                                  Design by Woryk
                                  ContactMentions Légales

                                  MINECRAFT FORGE FRANCE © 2024

                                  Powered by NodeBB