Résolu Iventaire d'une amendes Crash
-
Bonjours, j’ai tenté de crée un item pour mettre une amendes, et ouvrire un inventaire sauf que voila , crash. Voici l’erreur :
–-- Minecraft Crash Report ---- // I just don't know what went wrong :( Time: 29/02/16 21:08 Description: Unexpected error java.lang.NullPointerException: Unexpected error at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:265) at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2209) at fr.ph1823.MyLife.Item.Menotes.func_77659_a(Menotes.java:23) at net.minecraft.item.ItemStack.func_77957_a(ItemStack.java:146) at net.minecraft.client.multiplayer.PlayerControllerMP.func_78769_a(PlayerControllerMP.java:377) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1475) at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1953) at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:973) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:898) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:265) at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2209) at fr.ph1823.MyLife.Item.Menotes.func_77659_a(Menotes.java:23) at net.minecraft.item.ItemStack.func_77957_a(ItemStack.java:146) at net.minecraft.client.multiplayer.PlayerControllerMP.func_78769_a(PlayerControllerMP.java:377) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1475) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['ph1823'/76, l='MpServer', x=-13,11, y=68,62, z=435,36]] Chunk stats: MultiplayerChunkCache: 349, 349 Level seed: 0 Level generator: ID 00 - default, ver 1\. Features enabled: false Level generator options: Level spawn location: World: (63,64,-46), Chunk: (at 15,4,2 in 3,-3; contains blocks 48,0,-48 to 63,255,-33), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1) Level time: 13281 game time, 4553711 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 56 total; [EntitySkeleton['Skeleton'/131, l='MpServer', x=50,69, y=18,85, z=389,69], EntitySkeleton['Skeleton'/132, l='MpServer', x=42,28, y=21,00, z=392,25], EntitySkeleton['Skeleton'/133, l='MpServer', x=43,50, y=65,00, z=480,50], EntityZombie['Zombie'/134, l='MpServer', x=41,78, y=12,00, z=375,84], EntityClientPlayerMP['ph1823'/76, l='MpServer', x=-13,11, y=68,62, z=435,36], EntityCreeper['Creeper'/77, l='MpServer', x=-26,00, y=16,00, z=438,50], EntityZombie['Zombie'/78, l='MpServer', x=-9,06, y=61,51, z=425,53], EntitySquid['Squid'/79, l='MpServer', x=-8,06, y=54,45, z=420,42], EntitySquid['Squid'/80, l='MpServer', x=-9,02, y=49,16, z=430,50], EntitySquid['Squid'/81, l='MpServer', x=-6,85, y=55,68, z=416,27], EntityItem['item.tile.flower2.poppy'/82, l='MpServer', x=15,19, y=68,13, z=439,63], EntityItem['item.item.seeds'/83, l='MpServer', x=12,41, y=68,13, z=439,28], EntityItem['item.item.seeds'/84, l='MpServer', x=15,41, y=68,13, z=434,69], EntitySquid['Squid'/85, l='MpServer', x=-12,50, y=51,73, z=422,23], EntitySquid['Squid'/86, l='MpServer', x=-33,25, y=62,53, z=418,87], EntitySquid['Squid'/87, l='MpServer', x=-24,53, y=59,77, z=417,81], EntitySquid['Squid'/88, l='MpServer', x=8,24, y=58,32, z=425,22], EntitySquid['Squid'/89, l='MpServer', x=5,85, y=52,23, z=431,35], EntitySquid['Squid'/90, l='MpServer', x=-4,27, y=46,00, z=412,68], EntitySquid['Squid'/91, l='MpServer', x=-10,20, y=51,63, z=407,08], EntitySquid['Squid'/92, l='MpServer', x=-10,44, y=52,85, z=409,72], EntitySpider['Spider'/93, l='MpServer', x=29,66, y=70,00, z=439,22], EntityPig['Pig'/94, l='MpServer', x=-14,41, y=85,00, z=478,63], EntityZombie['Zombie'/95, l='MpServer', x=-30,50, y=17,00, z=471,97], EntityPig['Pig'/96, l='MpServer', x=-17,53, y=86,00, z=476,41], EntitySquid['Squid'/97, l='MpServer', x=-24,47, y=49,88, z=416,49], EntitySquid['Squid'/98, l='MpServer', x=-11,14, y=52,04, z=408,61], EntitySquid['Squid'/99, l='MpServer', x=31,41, y=58,41, z=427,94], EntitySquid['Squid'/100, l='MpServer', x=16,97, y=56,50, z=415,69], EntitySquid['Squid'/101, l='MpServer', x=10,81, y=57,21, z=421,87], EntitySquid['Squid'/102, l='MpServer', x=26,06, y=58,47, z=430,56], EntitySquid['Squid'/103, l='MpServer', x=17,34, y=55,59, z=431,50], EntitySquid['Squid'/104, l='MpServer', x=23,88, y=59,88, z=417,94], EntitySquid['Squid'/105, l='MpServer', x=27,81, y=53,75, z=423,50], EntitySkeleton['Skeleton'/106, l='MpServer', x=29,50, y=69,00, z=451,50], EntitySkeleton['Skeleton'/107, l='MpServer', x=26,50, y=69,00, z=456,50], EntityCreeper['Creeper'/108, l='MpServer', x=2,50, y=75,00, z=471,50], EntityPig['Pig'/109, l='MpServer', x=-39,81, y=74,00, z=468,16], EntityZombie['Zombie'/110, l='MpServer', x=16,13, y=61,92, z=464,75], EntitySquid['Squid'/111, l='MpServer', x=-12,22, y=60,22, z=404,29], EntitySkeleton['Skeleton'/112, l='MpServer', x=37,53, y=69,00, z=447,09], EntitySpider['Spider'/113, l='MpServer', x=37,75, y=69,00, z=442,91], EntityPig['Pig'/114, l='MpServer', x=-9,28, y=80,00, z=477,31], EntityZombie['Zombie'/115, l='MpServer', x=-16,91, y=47,00, z=484,50], EntityPig['Pig'/116, l='MpServer', x=-21,68, y=91,00, z=483,54], EntityPig['Pig'/117, l='MpServer', x=-49,09, y=63,00, z=457,47], EntityCreeper['Creeper'/118, l='MpServer', x=32,25, y=23,08, z=416,56], EntityWitch['Witch'/119, l='MpServer', x=34,31, y=22,00, z=418,69], EntitySkeleton['Skeleton'/120, l='MpServer', x=39,72, y=20,00, z=418,28], EntityEnderman['Enderman'/121, l='MpServer', x=-43,38, y=80,00, z=490,50], EntityPig['Pig'/122, l='MpServer', x=-48,19, y=72,00, z=464,19], EntitySkeleton['Skeleton'/123, l='MpServer', x=29,72, y=22,00, z=395,28], EntityCreeper['Creeper'/124, l='MpServer', x=29,50, y=16,00, z=397,50], EntitySkeleton['Skeleton'/125, l='MpServer', x=34,41, y=21,00, z=397,88], EntityZombie['Zombie'/126, l='MpServer', x=18,50, y=71,00, z=481,50], EntityCreeper['Creeper'/127, l='MpServer', x=29,00, y=76,00, z=481,50]] Retry entities: 0 total; [] Server brand: kcauldron,cauldron,craftbukkit,mcpc,fml,forge Server type: Non-integrated multiplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:373) at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2444) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:927) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) – System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 280764928 bytes (267 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 18 mods loaded, 18 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHIJA FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1448-1.7.10.jar) UCHIJA Forge{10.13.4.1448} [Minecraft Forge] (forge-1.7.10-10.13.4.1448-1.7.10.jar) UCHIJA Backpack{2.0.1} [Backpack] (Backpacks-Mod.jar) UCHIJA BiblioCraft{1.10.4} [BiblioCraft] (BiblioCraft[v1.10.4][MC1.7.10].jar) UCHIJA CarpentersBlocks{3.3.0 DEV R4} [Carpenter's Blocks] (Carpenter's Blocks.jar) UCHIJA chisel{1.5.7} [Chisel] (Chisel[v1.5.7][1.7.10].jar) UCHIJA customnpcs{1.7.10d} [CustomNpcs] (CustomNPCs[vd][1.7.10].jar) UCHIJA PTRModelLib{1.0.0} [PTRModelLib] (Decocraft-2.1.1_1.7.10.jar) UCHIJA props{2.1.1} [Decocraft] (Decocraft-2.1.1_1.7.10.jar) UCHIJA flansmod{4.10.0} [Flan's Mod] (Flans Mod-1.7.10-4.10.0.jar) UCHIJA gvc{0.6.1} [§aGliby's§f Voice Chat Mod] (GlibysVC[1.7.10].jar) UCHIJA mm{1.0} [Minecraft Money] (MinecraftMoney[1.7.10].jar) UCHIJA MyLife{1.0} [MyLife] (modid-1.0.jar) UCHIJA Monoblocks{1.10.10} [§1M§2o§3n§4o§5b§6l§7o§8c§9k§as] (Monoblocks-1.10.10.jar) UCHIJA MonoblocksMultipart{1.10.10} [MonoblocksMultipart] (Monoblocks-1.10.10.jar) UCHIJA cfm{3.4.7} [§9MrCrayfish's Furniture Mod] (MrCrayfishFurnitureModv3.4.7(1.7.10).jar) UCHIJA securitycraft{v1.7.4.2} [SecurityCraft] (SecurityCraft[1.7.10].jar) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 361.91' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' Launched Version: 1.7.10-Forge10.13.4.1448-1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 361.91, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: 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)
Voici le code :
http://play.glorycraft.fr/src.rar
Merci de votre aide. -
Vu le npe je pense que tu n’as pas enregistré le gui handler;
-
Normal :
// NetworkRegistry.INSTANCE.registerGuiHandler(instance, new Amendes());
-
Bonjours, problème résolue, mais je voudrais enlevé l’inventaire du player comment faire? Enfin le caché .
-
Cacher l’inventaire du joueur dans ton container ?
Il faut que tu enléves les lignes qui dans les for() du constructeur du container