MFF

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

    Ajouter un gui et un container à un bloc

    Planifier Épinglé Verrouillé Déplacé Les interfaces (GUI) et les container
    1.7.x
    129 Messages 21 Publieurs 31.6k Vues 8 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.
    • H Hors-ligne
      Havzen
      dernière édition par robin4002

      Bonjour robin,
      Moi g un petit problème au niveaux du lancement du client pour vérifier que les slots marchent bien mais g un crash au niveaux de l’instance je crois
      Voici la console et le crash:

      Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
      [21:41:10] [main/INFO] [GradleStart]: Extra: []
      [21:41:10] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/pc02/.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]
      [21:41:10] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [21:41:10] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [21:41:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
      [21:41:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
      [21:41:10] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
      [21:41:10] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_271, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_271
      [21:41:10] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
      [21:41:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
      [21:41:10] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
      [21:41:10] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
      [21:41:10] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [21:41:10] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
      [21:41:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
      [21:41:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [21:41:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [21:41:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
      [21:41:11] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
      [21:41:12] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
      [21:41:12] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
      [21:41:12] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
      [21:41:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
      [21:41:13] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
      [21:41:13] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
      [21:41:13] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
      [21:41:14] [main/INFO]: Setting user: Player41
      [21:41:15] [Client thread/INFO]: LWJGL Version: 2.9.1
      [21:41:16] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
      // Don't do that.
      
      Time: 12/11/20 21:41
      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 10 (amd64) version 10.0
      	Java Version: 1.8.0_271, Oracle Corporation
      	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      	Memory: 798218424 bytes (761 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: 
      	GL info: ' Vendor: 'Intel' Version: '4.6.0 - Build 26.20.100.7262' Renderer: 'Intel(R) UHD Graphics 630'
      [21:41:16] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
      [21:41:16] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized
      [21:41:16] [Client thread/INFO] [FML]: Replaced 183 ore recipies
      [21:41:16] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
      [21:41:17] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
      [21:41:17] [Client thread/INFO] [FML]: Searching C:\Users\pc02\Desktop\mod 1.7.10\eclipse\mods for mods
      [21:41:23] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
      [21:41:23] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, irizium] at CLIENT
      [21:41:23] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, irizium] at SERVER
      [21:41:24] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
      [21:41:24] [Client 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.1614-1.7.10.jar) 
      	UC	Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) 
      	UE	irizium{1.0.0} [Irimod] (bin) 
      [21:41:24] [Client thread/ERROR] [FML]: The following problems were captured during this phase
      [21:41:24] [Client thread/ERROR] [FML]: Caught exception from irizium
      java.lang.IllegalArgumentException: Can not set static fr.havzen.irizium.Reference field fr.havzen.irizium.Reference.modinstance to fr.havzen.irizium.IriMod
      	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_271]
      	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_271]
      	at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_271]
      	at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_271]
      	at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:427) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
      	at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:358) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
      	at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_271]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
      	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_271]
      	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) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
      	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_271]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
      	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_271]
      	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.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]
      	at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?]
      	at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
      	at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_271]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_271]
      	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_271]
      	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
      	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
      	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
      	at GradleStart.main(Unknown Source) [start/:?]
      [21:41:24] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Irimod
      [21:41:24] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
      // Don't do that.
      
      Time: 12/11/20 21:41
      Description: Initializing game
      
      java.lang.IllegalArgumentException: Can not set static fr.havzen.irizium.Reference field fr.havzen.irizium.Reference.modinstance to fr.havzen.irizium.IriMod
      	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
      	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
      	at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source)
      	at java.lang.reflect.Field.set(Unknown Source)
      	at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:427)
      	at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:358)
      	at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:513)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at 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:212)
      	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at 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:119)
      	at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
      	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)
      	at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
      	at net.minecraft.client.Minecraft.run(Minecraft.java:942)
      	at net.minecraft.client.main.Main.main(Main.java:164)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
      	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
      	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
      	at GradleStart.main(Unknown Source)
      
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- Head --
      Stacktrace:
      	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
      	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
      	at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source)
      	at java.lang.reflect.Field.set(Unknown Source)
      	at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:427)
      	at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:358)
      	at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:513)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at 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:212)
      	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at 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:119)
      	at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)
      	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)
      	at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
      
      -- Initialization --
      Details:
      Stacktrace:
      	at net.minecraft.client.Minecraft.run(Minecraft.java:942)
      	at net.minecraft.client.main.Main.main(Main.java:164)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
      	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
      	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
      	at GradleStart.main(Unknown Source)
      
      -- System Details --
      Details:
      	Minecraft Version: 1.7.10
      	Operating System: Windows 10 (amd64) version 10.0
      	Java Version: 1.8.0_271, Oracle Corporation
      	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      	Memory: 615468504 bytes (586 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.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
      	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.1614-1.7.10.jar) 
      	UC	Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) 
      	UE	irizium{1.0.0} [Irimod] (bin) 
      	GL info: ' Vendor: 'Intel' Version: '4.6.0 - Build 26.20.100.7262' Renderer: 'Intel(R) UHD Graphics 630'
      	Launched Version: 1.7.10
      	LWJGL: 2.9.1
      	OpenGL: Intel(R) UHD Graphics 630 GL version 4.6.0 - Build 26.20.100.7262, Intel
      	GL Caps: Using GL 1.3 multitexturing.
      Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
      Anisotropic filtering is supported and maximum anisotropy is 16.
      Shaders are available because OpenGL 2.1 is supported.
      
      	Is Modded: Definitely; Client brand changed to 'fml,forge'
      	Type: Client (map_client.txt)
      	Resource Packs: []
      	Current Language: English (US)
      	Profiler Position: N/A (disabled)
      	Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
      	Anisotropic Filtering: Off (1)
      [21:41:24] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\pc02\Desktop\mod 1.7.10\eclipse\.\crash-reports\crash-2020-11-12_21.41.24-client.txt
      

      Merci d’avance.

      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

        Ton instance ne doit pas être de type référence mais du même type que la classe principale.

        Par contre, nous ne faisons plus de support pour la 1.7.10, cette version est obsolète.

        H 2 réponses Dernière réponse Répondre Citer 0
        • H Hors-ligne
          Havzen @robin4002
          dernière édition par

          @robin4002 j’ai créé une classe pour toutes les information de mon mod(c’est la class Reference)

          1 réponse Dernière réponse Répondre Citer 0
          • H Hors-ligne
            Havzen @robin4002
            dernière édition par

            @robin4002 C bon ca a marcher mais maintenant quand je pose mon block et que je click droit Il ne se passe rien (je viens de commencer les dev jsuis un gros noob mdrrr)

            1 réponse Dernière réponse Répondre Citer 0
            • H Hors-ligne
              Havzen
              dernière édition par robin4002

              Voici mes class:

              package fr.havzen.irizium.tileentity;
              
              
              import fr.havzen.irizium.IriMod;
              import fr.havzen.irizium.Reference;
              import net.minecraft.block.Block;
              import net.minecraft.block.material.Material;
              import net.minecraft.entity.EntityLivingBase;
              import net.minecraft.entity.item.EntityItem;
              import net.minecraft.entity.player.EntityPlayer;
              import net.minecraft.inventory.IInventory;
              import net.minecraft.item.ItemStack;
              import net.minecraft.nbt.NBTTagCompound;
              import net.minecraft.tileentity.TileEntity;
              import net.minecraft.tileentity.TileEntityChest;
              import net.minecraft.util.ChatComponentText;
              import net.minecraft.util.ChatComponentTranslation;
              import net.minecraft.util.MathHelper;
              import net.minecraft.world.World;
              
              public class BlockEntity1 extends Block
              {
              
              	public BlockEntity1(Material p_i45394_1_) 
              	{
              		super(p_i45394_1_);
              		
              	}
              
              	@Override
              	public boolean hasTileEntity(int metadata) {
              		
              		return true;
              	}
              
              	@Override
              	public TileEntity createTileEntity(World world, int metadata) {
              		
              		return new TileEntityIrizium();
              	}
              	   public boolean onBlockActivated1(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
              	    {
              	        if (world.isRemote)
              	        {
              	            return true;
              	        }
              	        else
              	        {
              	            {
              	                player.openGui(IriMod.modinstance, 0, world, x, y, z);;
              	            }
              
              	            return true;
              	        }
              	    }
              	
              	 public void breakBlock(World world, int x, int y, int z, Block block, int metadata)
              	    {
              	        TileEntity tileentity = world.getTileEntity(x, y, z);
              	        
              	        IInventory inv = (IInventory)tileentity;
              	        if (tileentity instanceof IInventory)
              	        {
              	            for (int i1 = 0; i1 < inv.getSizeInventory(); ++i1)
              	            {
              	                ItemStack itemstack = inv.getStackInSlot(i1);
              
              	                if (itemstack != null)
              	                {
              	                    float f = world.rand.nextFloat() * 0.8F + 0.1F;
              	                    float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
              	                    EntityItem entityitem;
              
              	                    for (float f2 = world.rand.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))
              	                    {
              	                        int j1 = world.rand.nextInt(21) + 10;
              
              	                        if (j1 > itemstack.stackSize)
              	                        {
              	                            j1 = itemstack.stackSize;
              	                        }
              
              	                        itemstack.stackSize -= j1;
              	                        entityitem = new EntityItem(world, (double)((float)x + f), (double)((float)y + f1), (double)((float)z + f2), new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
              	                        float f3 = 0.05F;
              	                        entityitem.motionX = (double)((float)world.rand.nextGaussian() * f3);
              	                        entityitem.motionY = (double)((float)world.rand.nextGaussian() * f3 + 0.2F);
              	                        entityitem.motionZ = (double)((float)world.rand.nextGaussian() * f3);
              
              	                        if (itemstack.hasTagCompound())
              	                        {
              	                            entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
              	                        }
              	                    }
              	                }
              	            }
              
              	            world.func_147453_f(x, y, z, block);
              	        }
              
              	        super.breakBlock(world, x, y, z, block, metadata);
              	    }
              	 public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase living, ItemStack stack)
              	 {
              		 if(stack.getItemDamage() == 0)
              		 {
              			 TileEntity tile = world.getTileEntity(x, y, z);
              			 if(tile instanceof TileEntityIrizium)
              			 {
              				 int direction = MathHelper.floor_double((double)(living.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
              				 ((TileEntityIrizium)tile).setDirection((byte)direction);
              				 if(stack.hasDisplayName())
              				 {
              					 ((TileEntityIrizium)tile).setCustomName(stack.getDisplayName()); 
              				 }
              			 }
              		 }
              	 }
              	
                  public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
                  
                  {
                  	TileEntity tile = world.getTileEntity(x, y, z);
                  	if(tile instanceof TileEntityIrizium)
                  	{
                  		TileEntityIrizium BlockEntityTest = (TileEntityIrizium)tile;	
                  	}
                      return false;
                  }
              }
              
              1 réponse Dernière réponse Répondre Citer 0
              • H Hors-ligne
                Havzen
                dernière édition par robin4002

                package fr.havzen.irizium.tileentity;
                
                import net.minecraft.entity.player.EntityPlayer;
                import net.minecraft.inventory.IInventory;
                import net.minecraft.item.ItemStack;
                import net.minecraft.nbt.NBTTagCompound;
                import net.minecraft.nbt.NBTTagList;
                import net.minecraft.tileentity.TileEntity;
                import net.minecraftforge.common.util.Constants;
                
                
                public class TileEntityIrizium extends TileEntity implements IInventory
                {
                	private int number;
                	private byte direction;
                	private ItemStack[] contents = new ItemStack [108];
                	private String customName;
                
                	@Override
                	public void readFromNBT(NBTTagCompound compound) 
                	{
                		
                		super.readFromNBT(compound);
                		this.direction = compound.getByte("Direction");
                		
                		 
                		if (compound.hasKey("CustomName", Constants.NBT.TAG_STRING))
                	        {
                	            this.customName = compound.getString("CustomName");
                	        }
                            
                		NBTTagList nbttaglist = compound.getTagList("Items", Constants.NBT.TAG_COMPOUND);
                	        this.contents = new ItemStack[this.getSizeInventory()];
                
                	        if (compound.hasKey("CustomName", 8))
                	        {
                	            this.customName = compound.getString("CustomName");
                	        }
                
                	        for (int i = 0; i < nbttaglist.tagCount(); ++i)
                	        {
                	            NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i);
                	            int j = nbttagcompound1.getByte("Slot") & 255;
                
                	            if (j >= 0 && j < this.contents.length)
                	            {
                	                this.contents[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
                	            }
                	        }
                	}
                
                	@Override
                	public void writeToNBT(NBTTagCompound compound)
                	{
                		
                		super.writeToNBT(compound);
                		compound.setByte("Direction", this.direction);
                		
                		 if (this.hasCustomInventoryName())
                	        {
                			 compound.setString("CustomName", this.customName);
                	        }
                		
                		NBTTagList nbttaglist = new NBTTagList();
                
                        for (int i = 0; i < this.contents.length; ++i)
                        {
                            if (this.contents[i] != null)
                            {
                                NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                                nbttagcompound1.setByte("Slot", (byte)i);
                                this.contents[i].writeToNBT(nbttagcompound1);
                                nbttaglist.appendTag(nbttagcompound1);
                            }
                        }
                
                        compound.setTag("Items", nbttaglist);
                
                        if (this.hasCustomInventoryName())
                        {
                        	compound.setString("CustomName", this.customName);
                        }
                	}
                	
                
                
                	public byte getDirection() {
                		return direction;
                	}
                
                	public void setDirection(byte direction) {
                		this.direction = direction;
                	}
                
                	@Override
                	public int getSizeInventory() {
                		
                		return this.contents.length;
                	}
                
                	@Override
                	public ItemStack getStackInSlot(int slotIndex) {
                
                		return this.contents[slotIndex];
                	}
                
                	@Override
                	public ItemStack decrStackSize(int slotIndex, int amount) {
                        if (this.contents[slotIndex] != null)
                        {
                            ItemStack itemstack;
                
                            if (this.contents[slotIndex].stackSize <= amount)
                            {
                                itemstack = this.contents[slotIndex];
                                this.contents[slotIndex] = null;
                                this.markDirty();
                                return itemstack;
                            }
                            else
                            {
                                itemstack = this.contents[slotIndex].splitStack(amount);
                
                                if (this.contents[slotIndex].stackSize == 0)
                                {
                                    this.contents[slotIndex] = null;
                                }
                
                                this.markDirty();
                                return itemstack;
                            }
                        }
                        else
                        {
                            return null;
                        }
                	}
                	@Override
                	public ItemStack getStackInSlotOnClosing(int slotIndex) 
                	{
                		 if (this.contents[slotIndex] != null)
                	        {
                	            ItemStack itemstack = this.contents[slotIndex];
                	            this.contents[slotIndex] = null;
                	            return itemstack;
                	        }
                	        else
                	        {
                	            return null;
                	        }
                	}
                	
                	
                
                	@Override
                	public void setInventorySlotContents(int slotIndex, ItemStack stack) 
                	{
                		this.contents[slotIndex] = stack;
                
                        if (stack != null && stack.stackSize > this.getInventoryStackLimit())
                        {
                        	stack.stackSize = this.getInventoryStackLimit();
                        }
                
                        this.markDirty();
                		
                	}
                
                	@Override
                	public String getInventoryName() 
                	{
                		return this.hasCustomInventoryName() ? this.customName : "tile.irizium.chest";
                	}
                
                
                	@Override
                	public boolean hasCustomInventoryName() {
                
                		return this.customName != null && !this.customName.isEmpty();
                	}
                
                	public void setCustomName(String customName) 
                	{
                		this.customName = customName;
                	}
                
                	@Override
                	public int getInventoryStackLimit() 
                	{
                
                		return 240;
                	}
                
                	@Override
                	public boolean isUseableByPlayer(EntityPlayer player) 
                	{
                        return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : player.getDistanceSq((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) <= 64.0D;
                    }
                
                	@Override
                	public void openInventory() {
                		
                		
                	}
                
                	@Override
                	public void closeInventory() 
                	{
                
                	}
                
                	@Override
                	public boolean isItemValidForSlot(int slotIndex, ItemStack stack) 
                	{
                		return true;
                	}
                }
                
                1 réponse Dernière réponse Répondre Citer 0
                • H Hors-ligne
                  Havzen
                  dernière édition par robin4002

                  package fr.havzen.irizium.tileentity;
                  
                  import net.minecraft.entity.player.EntityPlayer;
                  import net.minecraft.tileentity.TileEntity;
                  import net.minecraft.world.World;
                  import cpw.mods.fml.common.network.IGuiHandler;
                  
                  public class GuiHandlerIri 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 TileEntityIrizium)
                  		{
                  			return new ContainerIrizium((TileEntityIrizium)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 TileEntityIrizium)
                  		{
                  			return new GuiIrizium((TileEntityIrizium)tile, player.inventory);
                  		}
                  		return null;
                  	}
                  }
                  
                  1 réponse Dernière réponse Répondre Citer 0
                  • H Hors-ligne
                    Havzen
                    dernière édition par robin4002

                    package fr.havzen.irizium.tileentity;
                    
                    import net.minecraft.client.gui.inventory.GuiContainer;
                    import net.minecraft.entity.player.InventoryPlayer;
                    import net.minecraft.inventory.Container;
                    
                    public class GuiIrizium extends GuiContainer {
                    
                    
                    	public GuiIrizium(TileEntityIrizium tile, InventoryPlayer inventory)
                        {
                    		super(new ContainerIrizium(tile, inventory));
                    	}
                    
                    	@Override
                    	protected void drawGuiContainerBackgroundLayer(float p_146976_1_,int p_146976_2_, int p_146976_3_) 
                    	{
                    		
                        }
                    }
                    
                    1 réponse Dernière réponse Répondre Citer 0
                    • H Hors-ligne
                      Havzen
                      dernière édition par robin4002

                      Et ma classe init:

                      public class BlockMod
                      {
                          public static Block Irizium_Block, Irizium_Ore, Cave_Block, testChest, BlockEntityTest;
                      
                          public static void init()
                          {
                          	Irizium_Block = new BlockBasic(Material.iron).setBlockName("Irizium_Block").setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName(Reference.IR_ID + ":Irizium_Block").setHardness(3.0f);
                          	Irizium_Ore = new BlockBasic(Material.iron).setBlockName("Irizium_Ore").setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName(Reference.IR_ID + ":Irizium_Ore");
                          	Cave_Block = new BlockBasic(Material.glass).setBlockName("Cave_Block").setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName(Reference.IR_ID + ":Cave_Block");
                          	BlockEntityTest = new BlockEntity1(Material.iron).setBlockName("BlockEntityTest").setCreativeTab(CreativeTabs.tabBlock);
                          }
                          
                          public  static void register()
                          {
                          	GameRegistry.registerBlock(Irizium_Block, Irizium_Block.getUnlocalizedName().substring(5));
                          	GameRegistry.addRecipe(new ItemStack(BlockMod.Irizium_Block, 1), new Object[]{"###", "###", "###", '#', ItemMod.Irizium_Ingot});
                          	GameRegistry.registerBlock(Cave_Block, "Cave_Block");
                          	GameRegistry.registerBlock(Irizium_Ore, "Irizium_Ore");
                          	GameRegistry.registerBlock(BlockEntityTest, "BlockEntityTest");
                          	GameRegistry.registerTileEntity(TileEntityIrizium.class, "BlockEntityTest");
                          	
                          }
                          
                      }
                      
                      1 réponse Dernière réponse Répondre Citer 0
                      • H Hors-ligne
                        Havzen
                        dernière édition par

                        @robin4002

                        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

                          Un seul message aurait suffit et avec les balises code c’est mieux.
                          Aussi évites de spammer de mention …

                          Et sinon je t’ai déjà dit que MFF ne fait plus de support pour la 1.7.10 : soit tu utilises une version moderne, soit tu te débrouilles.

                          H 1 réponse Dernière réponse Répondre Citer 0
                          • H Hors-ligne
                            Havzen @robin4002
                            dernière édition par

                            Ok jsuis desolé mais juste aide moi sur ce truc et jte fais plus chier
                            je na sais pas quoi faire

                            1 réponse Dernière réponse Répondre Citer 0
                            • BrokenSwingB BrokenSwing a fait référence à ce sujet sur
                            • robin4002R robin4002 a fait référence à ce sujet sur
                            • robin4002R robin4002 a fait référence à ce sujet sur
                            • robin4002R robin4002 a fait référence à ce sujet sur
                            • 1
                            • 2
                            • 3
                            • 4
                            • 5
                            • 6
                            • 7
                            • 7 / 7
                            • Premier message
                              Dernier message
                            Design by Woryk
                            ContactMentions Légales

                            MINECRAFT FORGE FRANCE © 2024

                            Powered by NodeBB