MFF

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

    Problème GUI

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    76 Messages 6 Publieurs 11.9k 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.
    • SpyManS Hors-ligne
      SpyMan
      dernière édition par

      J’arrive maintenant à lancer mon jeu mais le GUI ne s’affiche pas lorsque je clic-droit dessus.

      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

        Ce qui est normal comme la fonction getClientGuiElement de ton gui handler ne contient rien.

        Et c’est 1 mod = 1 gui handler
        et non 1 bloc = 1 gui handler
        (je dis ça car vu le nom de ton gui handler j’ai l’impression que tu vas faire un gui handler par bloc ce qui ne fonctionnera pas).

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

          Mon GUI ne s’ouvre toujours pas 😕

          Voici la modification de ma class : 

          
          [font=Consolas**public class **]GuiHandler **implements **%(#345f99)[IGuiHandler
          ]{
            %(#278c3c)[***@Override
          ***]   **public **Object getServerGuiElement(**int ***ID*, EntityPlayer *player*, World *world*, **int ***x*, **int ***y*, **int ***z*)
            {
               TileEntity **tile **= *world*.getTileEntity(*x*, *y*, *z*)%(#aaa9a7)[;
          ]        **if**(**tile ****instanceof **TileEntityAlloyer)
                 {
                     **return new **ContainerAlloyer((TileEntityAlloyer)**tile**, *player*.**inventory**)%(#aaa9a7)[;
          ]        }
               **return **getClientGuiElement(*ID*, *player*, *world*, *x*, *y*, *z*)%(#aaa9a7)[;
          ]   }
          
            %(#278c3c)[***@Override
          ***]   **public **Object getClientGuiElement(**int ***ID*, EntityPlayer *player*, World *world*, **int ***x*, **int ***y*, **int ***z*)
            {
               TileEntity **tile **= *world*.getTileEntity(*x*, *y*, *z*)%(#aaa9a7)[;
          ]        **if**(**tile ****instanceof **TileEntityAlloyer)
                 {
                     **return new **ContainerAlloyer((TileEntityAlloyer)**tile**, *player*.**inventory**)%(#aaa9a7)[;
          ]        }
               **return ****tile**%(#aaa9a7)[;
          ]   }
          }
          
          
          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

            “getClientGuiElement”
            “return new ContainerAlloyer((TileEntityAlloyer)tile, player.inventory);”
            En même temps si tu retourne le container au lieu de gui ….

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

              C’est normal, sur le client tu ouvres le container et pas le gui.

              Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

              AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

              Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
              Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

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

                Ce fichu GUI va me rendre fou !
                ça na fonctionne toujours pas

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

                  @Override
                  public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) 
                  {
                  TileEntity tile = world.getTileEntity(x, y, z);
                          if(tile instanceof TileEntityAlloyer)
                          {
                              return new ContainerAlloyer((TileEntityAlloyer)tile, player.inventory);
                          }
                  return new ContainerAlloyer((TileEntityAlloyer)tile, player.inventory);
                  }
                  

                  Tu l’ouvres où ton gui ?!?

                  Il faut mettre “return new GuiAlloyer((TileEntityAlloyer)tile, player.inventory);”

                  Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

                  AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

                  Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
                  Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

                  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

                    public class GuiHandler implements IGuiHandler
                    {
                    @Override
                    public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
                    {
                    TileEntity tile = world.getTileEntity(x, y, z);
                    if(tile instanceof TileEntityAlloyer)
                    {
                    return new ContainerAlloyer((TileEntityAlloyer)tile, player.inventory);
                    }
                    return null;
                    }
                    
                    @Override
                    public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
                    {
                    TileEntity tile = world.getTileEntity(x, y, z);
                    if(tile instanceof TileEntityAlloyer)
                    {
                    return new GuiAlloyer((TileEntityAlloyer)tile, player.inventory);
                    }
                    return null;
                    }
                    }
                    
                    1 réponse Dernière réponse Répondre Citer 0
                    • SpyManS Hors-ligne
                      SpyMan
                      dernière édition par

                      Cela ne fonctionne pas non plus :/

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

                        Dans ton block, à l’endroit où Touvre le gui, t’a mis ton block au lieu de l’instance du mod

                        Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

                        AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

                        Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
                        Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

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

                          ça change rien 😕
                          Quand je clic-droit j’ai bien l’animation du bras du joueur qui clic-droit mais j’ai pas de GUI qui s’ouvre.

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

                            Il faut que tu implemente l’interface ITileEnityProvider, ou que tu mettes extends BlockContainer, car sinon, même si t’a mis hasTileEnity() True, la fonction createNewEntity n’est pas appelée.

                            Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

                            AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

                            Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
                            Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

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

                              Dans la class du Block?

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

                                public class TonBloc extends Block implements ITileEntityProvider
                                
                                1 réponse Dernière réponse Répondre Citer 0
                                • AymericRedA Hors-ligne
                                  AymericRed
                                  dernière édition par

                                  BrokenSwing t’a répondu

                                  Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

                                  AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

                                  Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
                                  Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

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

                                    :::

                                    [10:54:15] [main/INFO] [GradleStart]: Extra: []
                                    [10:54:15] [main/INFO] [GradleStart]: Password found, attempting login
                                    [10:54:15] [main/INFO]: Logging in with username & password
                                    [10:54:18] [main/INFO] [GradleStart]: Login Succesful!
                                    [10:54:18] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Family/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --userType, mojang, --accessToken, {REDACTED}, --version, 1.7.10, --uuid,***********************, --username, SpyMan, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                                    [10:54:18] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                    [10:54:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                    [10:54:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                                    [10:54:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                                    [10:54:18] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
                                    [10:54:18] [main/INFO] [FML]: Java is Java HotSpot™ 64-Bit Server VM, version 1.8.0_66, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_66\jre
                                    [10:54:18] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                    [10:54:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                                    [10:54:19] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                                    [10:54:19] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                                    [10:54:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                    [10:54:19] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                    [10:54:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                    [10:54:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                    [10:54:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                    [10:54:19] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                    [10:54:19] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                    [10:54:24] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                                    [10:54:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                    [10:54:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                    [10:54:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                    [10:54:25] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                                    [10:54:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                                    [10:54:25] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                                    [10:54:27] [main/INFO]: Setting user: SpyMan
                                    [10:54:30] [Client thread/INFO]: LWJGL Version: 2.9.1
                                    [10:54:31] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
                                    // I bet Cylons wouldn’t have this problem.

                                    Time: 27/02/16 10:54
                                    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 7 (amd64) version 6.1
                                    Java Version: 1.8.0_66, Oracle Corporation
                                    Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
                                    Memory: 943100528 bytes (899 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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: ‘Intel’ Version: ‘2.1.0 - Build 8.15.10.2302’ Renderer: ‘Mobile Intel® 4 Series Express Chipset Family’
                                    [10:54:32] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                                    [10:54:32] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
                                    [10:54:32] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                                    [10:54:32] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                                    [10:54:33] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                                    [10:54:33] [Client thread/INFO] [FML]: Searching C:\Users\Family\Desktop\Java Modding\NewMechanicalCraft\eclipse\mods for mods
                                    [10:54:51] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                                    [10:54:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mechanicalcraft] at CLIENT
                                    [10:54:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mechanicalcraft] at SERVER
                                    [10:54:53] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MechanicalCraft_beta
                                    [10:54:53] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                                    [10:54:53] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                                    [10:54:53] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                                    [10:54:53] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                                    [10:54:53] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                                    [10:54:53] [Client thread/INFO] [FML]: Applying holder lookups
                                    [10:54:53] [Client thread/INFO] [FML]: Holder lookups applied
                                    [10:54:53] [Client thread/INFO] [FML]: Injecting itemstacks
                                    [10:54:53] [Client thread/INFO] [FML]: Itemstack injection complete
                                    [10:54:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [10:54:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                    [10:54:55] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                    [10:54:55] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                    [10:54:57] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                    [10:54:57] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [10:54:57] [Sound Library Loader/INFO]: Sound engine started
                                    [10:55:00] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
                                    [10:55:00] [Client thread/INFO]: Created: 16x16 textures/items-atlas
                                    [10:55:00] [Client thread/INFO] [FML]: Injecting itemstacks
                                    [10:55:00] [Client thread/INFO] [FML]: Itemstack injection complete
                                    [10:55:00] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                                    [10:55:00] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MechanicalCraft_beta
                                    [10:55:02] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                                    [10:55:02] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                                    [10:55:02] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [10:55:02] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                                    [10:55:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                                    [10:55:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [10:55:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [10:55:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                    [10:55:03] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                    [10:55:03] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                    [10:55:03] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                    [10:55:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                    [10:55:03] [Sound Library Loader/INFO]: Sound engine started
                                    [10:55:11] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                                    [10:55:11] [Server thread/INFO]: Generating keypair
                                    [10:55:12] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                                    [10:55:13] [Server thread/INFO] [FML]: Applying holder lookups
                                    [10:55:13] [Server thread/INFO] [FML]: Holder lookups applied
                                    [10:55:13] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@725e80c6)
                                    [10:55:14] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@725e80c6)
                                    [10:55:14] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@725e80c6)
                                    [10:55:14] [Server thread/INFO]: Preparing start region for level 0
                                    [10:55:15] [Server thread/INFO]: Preparing spawn area: 46%
                                    [10:55:17] [Server thread/INFO]: Changing view distance to 2, from 10
                                    [10:55:19] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
                                    [10:55:19] [Netty IO #1/INFO] [FML]: Client protocol version 2
                                    [10:55:19] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.99.99,Forge@10.13.4.1614,mcp@9.05,mechanicalcraft@1.0.0
                                    [10:55:19] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
                                    [10:55:19] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
                                    [10:55:19] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                                    [10:55:19] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
                                    [10:55:20] [Server thread/INFO]: SpyMan[local:E:dac59dea] logged in with entity id 197 at (-547.2541826537, 4.0, -1237.5136427791615)
                                    [10:55:20] [Server thread/INFO]: SpyMan joined the game
                                    [10:55:23] [Server thread/WARN]: Can’t keep up! Did the system time change, or is the server overloaded? Running 6120ms behind, skipping 122 tick(s)
                                    [10:55:34] [Server thread/ERROR]: Encountered an unexpected exception
                                    net.minecraft.util.ReportedException: Ticking memory connection
                                    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:198) ~[NetworkSystem.class:?]
                                    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) ~[MinecraftServer.class:?]
                                    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
                                    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[IntegratedServer.class:?]
                                    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
                                    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                                    Caused by: java.lang.ClassCastException: com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.TileEntityAlloyer cannot be cast to net.minecraft.inventory.IInventory
                                    at com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.ContainerAlloyer.<init>(ContainerAlloyer.java:17) ~[ContainerAlloyer.class:?]
                                    at com.google.SpyMan.Mechanicalcraft.common.GuiHandler.getServerGuiElement(GuiHandler.java:19) ~[GuiHandler.class:?]
                                    at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243) ~[NetworkRegistry.class:?]
                                    at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75) ~[FMLNetworkHandler.class:?]
                                    at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) ~[EntityPlayer.class:?]
                                    at com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.Alloyer.onBlockActivated(Alloyer.java:138) ~[Alloyer.class:?]
                                    at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409) ~[ItemInWorldManager.class:?]
                                    at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593) ~[NetHandlerPlayServer.class:?]
                                    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74) ~[C08PacketPlayerBlockPlacement.class:?]
                                    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122) ~[C08PacketPlayerBlockPlacement.class:?]
                                    at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) ~[NetworkManager.class:?]
                                    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?]
                                    … 5 more
                                    [10:55:34] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Family\Desktop\Java Modding\NewMechanicalCraft\eclipse.\crash-reports\crash-2016-02-27_10.55.34-server.txt
                                    [10:55:34] [Server thread/INFO]: Stopping server
                                    [10:55:34] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
                                    // I feel sad now 😞

                                    Time: 27/02/16 10:55
                                    Description: Ticking memory connection

                                    java.lang.ClassCastException: com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.TileEntityAlloyer cannot be cast to net.minecraft.inventory.IInventory
                                    at com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.ContainerAlloyer.<init>(ContainerAlloyer.java:17)
                                    at com.google.SpyMan.Mechanicalcraft.common.GuiHandler.getServerGuiElement(GuiHandler.java:19)
                                    at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243)
                                    at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)
                                    at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)
                                    at com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.Alloyer.onBlockActivated(Alloyer.java:138)
                                    at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409)
                                    at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
                                    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
                                    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
                                    at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
                                    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
                                    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
                                    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
                                    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
                                    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
                                    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

                                    A detailed walkthrough of the error, its code path and all known details is as follows:

                                    – Head –
                                    Stacktrace:
                                    at com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.ContainerAlloyer.<init>(ContainerAlloyer.java:17)
                                    at com.google.SpyMan.Mechanicalcraft.common.GuiHandler.getServerGuiElement(GuiHandler.java:19)
                                    at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243)
                                    at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)
                                    at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)
                                    at com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.Alloyer.onBlockActivated(Alloyer.java:138)
                                    at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409)
                                    at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
                                    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
                                    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
                                    at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)

                                    – Ticking connection –
                                    Details:
                                    Connection: net.minecraft.network.NetworkManager@19be8785
                                    Stacktrace:
                                    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
                                    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
                                    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
                                    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
                                    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
                                    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

                                    – System Details –
                                    Details:
                                    Minecraft Version: 1.7.10
                                    Operating System: Windows 7 (amd64) version 6.1
                                    Java Version: 1.8.0_66, Oracle Corporation
                                    Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
                                    Memory: 936439104 bytes (893 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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.1614 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
                                    UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
                                    UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) 
                                    UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) 
                                    UCHIJAAAA mechanicalcraft{1.0.0} [MechanicalCraft_beta] (NewMechanicalCraft) 
                                    GL info: ERROR RuntimeException: No OpenGL context found in the current thread.
                                    Profiler Position: N/A (disabled)
                                    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                    Player Count: 1 / 8; [EntityPlayerMP[‘SpyMan’/197, l=‘New World’, x=-547,25, y=4,00, z=-1237,51]]
                                    Type: Integrated Server (map_client.txt)
                                    Is Modded: Definitely; Client brand changed to ‘fml,forge’
                                    [10:55:34] [Server thread/INFO]: Saving players
                                    [10:55:34] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-02-27_10.55.34-server.txt
                                    [10:55:34] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
                                    [10:55:34] [Server thread/INFO]: Saving worlds
                                    [10:55:34] [Server thread/INFO]: Saving chunks for level ‘New World’/Overworld
                                    [10:55:35] [Server thread/INFO]: Saving chunks for level ‘New World’/Nether
                                    [10:55:35] [Server thread/INFO]: Saving chunks for level ‘New World’/The End
                                    [10:55:36] [Server thread/INFO] [FML]: Unloading dimension 0
                                    [10:55:36] [Server thread/INFO] [FML]: Unloading dimension -1
                                    [10:55:36] [Server thread/INFO] [FML]: Unloading dimension 1
                                    [10:55:36] [Server thread/INFO] [FML]: Applying holder lookups
                                    [10:55:36] [Server thread/INFO] [FML]: Holder lookups applied
                                    [10:55:36] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
                                    [10:55:36] [Client thread/INFO] [FML]: Server terminated.
                                    AL lib: (EE) alc_cleanup: 1 device not closed
                                    Java HotSpot™ 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

                                    Process finished with exit code -1</init></init></init>

                                    :::

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

                                      Holy sh*t qu’est ce que ça ? Fait plutôt un lien vers un pastebin
                                      Ensuite : Caused by: java.lang.ClassCastException: com.google.SpyMan.Mechanicalcraft.common.BlockAlloyer.TileEntityAlloyer cannot be cast to net.minecraft.inventory.IInventory
                                      Il faut que tu implémente l’interface IIventory à ton tileentity

                                      1 réponse Dernière réponse Répondre Citer 1
                                      • SpyManS Hors-ligne
                                        SpyMan
                                        dernière édition par

                                        OMG ! ça marche enfin ! MERCI
                                        PS : ça faisait 2/3 mois que je cherchais la solution a ce problème

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

                                          J’ai un autre petit soucis le craft ne se lance pas dans la machine

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

                                            Envoie la classe de ton TileEntity et la classe de ta recette s’il te plaît (flemme de download ton src)
                                            EDIT : Je vais le télécharger finalement

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB