Posted November 8, 201410 yr i just made my first tile entity, it is basically just a copy of the furnace atm, but when i right click on it in game, the game crashes and this is the report: ---- Minecraft Crash Report ---- // On the bright side, I bought you a teddy bear! Time: 11/7/14 7:45 PM Description: Unexpected error java.lang.NullPointerException: Unexpected error at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263) at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) at com.derptech.blocks.IronFurnace.onBlockActivated(IronFurnace.java:59) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:376) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2034) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1029) at net.minecraft.client.Minecraft.run(Minecraft.java:951) 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 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 GradleStartCommon.launch(GradleStartCommon.java:32) at GradleStart.startClient(GradleStart.java:97) at GradleStart.main(GradleStart.java:48) 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:263) at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) at com.derptech.blocks.IronFurnace.onBlockActivated(IronFurnace.java:59) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:376) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player613'/151, l='MpServer', x=-60.50, y=64.62, z=-79.50]] Chunk stats: MultiplayerChunkCache: 537, 537 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-61,64,-70), Chunk: (at 3,4,10 in -4,-5; contains blocks -64,0,-80 to -49,255,-65), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 574 game time, 574 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: 42 total; [EntityZombie['Zombie'/68, l='MpServer', x=-81.50, y=35.00, z=-35.50], EntityZombie['Zombie'/69, l='MpServer', x=-80.50, y=35.00, z=-37.50], EntityZombie['Zombie'/70, l='MpServer', x=-80.65, y=35.00, z=-36.10], EntitySkeleton['Skeleton'/64, l='MpServer', x=-81.32, y=35.71, z=-88.91], EntityZombie['Zombie'/65, l='MpServer', x=-83.97, y=34.00, z=-54.50], EntityWitch['Witch'/66, l='MpServer', x=-80.50, y=29.00, z=-45.50], EntityZombie['Zombie'/67, l='MpServer', x=-80.34, y=35.00, z=-35.22], EntityItem['item.item.seeds'/199, l='MpServer', x=-8.66, y=62.13, z=-94.25], EntityClientPlayerMP['Player613'/151, l='MpServer', x=-60.50, y=64.62, z=-79.50], EntityZombie['Zombie'/87, l='MpServer', x=-64.50, y=36.00, z=-38.50], EntityCreeper['Creeper'/86, l='MpServer', x=-79.50, y=29.00, z=-46.50], EntitySkeleton['Skeleton'/95, l='MpServer', x=-63.50, y=36.00, z=-38.90], EntityBat['Bat'/34, l='MpServer', x=-133.44, y=54.21, z=-138.27], EntitySkeleton['Skeleton'/38, l='MpServer', x=-135.50, y=51.00, z=-2.50], EntityCreeper['Creeper'/98, l='MpServer', x=-63.50, y=57.00, z=-19.50], EntityZombie['Zombie'/39, l='MpServer', x=-138.50, y=51.00, z=-1.50], EntityBat['Bat'/36, l='MpServer', x=-137.71, y=18.01, z=-23.25], EntityZombie['Zombie'/96, l='MpServer', x=-65.09, y=35.00, z=-41.47], EntityBat['Bat'/37, l='MpServer', x=-136.42, y=19.50, z=-23.63], EntitySkeleton['Skeleton'/97, l='MpServer', x=-51.94, y=36.00, z=-38.53], EntitySkeleton['Skeleton'/42, l='MpServer', x=-137.50, y=51.00, z=0.50], EntityBat['Bat'/110, l='MpServer', x=-4.74, y=30.28, z=-34.67], EntityCreeper['Creeper'/43, l='MpServer', x=-126.41, y=51.00, z=-138.03], EntityBat['Bat'/111, l='MpServer', x=-7.54, y=20.00, z=-33.72], EntityZombie['Zombie'/40, l='MpServer', x=-134.50, y=51.00, z=-0.50], EntitySkeleton['Skeleton'/108, l='MpServer', x=-31.50, y=13.00, z=-105.50], EntitySkeleton['Skeleton'/41, l='MpServer', x=-125.56, y=57.00, z=-9.04], EntityZombie['Zombie'/46, l='MpServer', x=-125.69, y=20.00, z=-56.70], EntityZombie['Zombie'/106, l='MpServer', x=-44.50, y=24.00, z=-31.50], EntityBat['Bat'/47, l='MpServer', x=-117.18, y=47.25, z=-25.80], EntityZombie['Zombie'/44, l='MpServer', x=-123.50, y=20.00, z=-55.94], EntityZombie['Zombie'/45, l='MpServer', x=-124.59, y=20.00, z=-59.10], EntitySkeleton['Skeleton'/105, l='MpServer', x=-39.25, y=11.07, z=-116.30], EntityCreeper['Creeper'/119, l='MpServer', x=5.53, y=24.00, z=-26.72], EntityBat['Bat'/118, l='MpServer', x=-1.51, y=27.38, z=-20.91], EntitySkeleton['Skeleton'/117, l='MpServer', x=15.50, y=21.00, z=-127.50], EntitySkeleton['Skeleton'/55, l='MpServer', x=-107.30, y=29.29, z=-131.30], EntityCreeper['Creeper'/112, l='MpServer', x=-5.50, y=16.00, z=-1.50], EntityCreeper['Creeper'/58, l='MpServer', x=-105.50, y=46.00, z=-58.50], EntitySkeleton['Skeleton'/57, l='MpServer', x=-107.50, y=29.00, z=-126.50], EntitySkeleton['Skeleton'/56, l='MpServer', x=-108.12, y=30.00, z=-130.31], EntityCreeper['Creeper'/120, l='MpServer', x=4.50, y=26.00, z=-24.50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556) at net.minecraft.client.Minecraft.run(Minecraft.java:980) 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 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 GradleStartCommon.launch(GradleStartCommon.java:32) at GradleStart.startClient(GradleStart.java:97) at GradleStart.main(GradleStart.java:48) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_71, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 899816872 bytes (858 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: 1, tcache: 1, allocated: 12, tallocated: 94 FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available derptech{0.0.1} [Derptech] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 9.17.10.2867, 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)
November 8, 201410 yr Author ok i did that now but now i am getting this crash report ---- Minecraft Crash Report ---- // Shall we play a game? Time: 11/7/14 8:15 PM Description: Rendering screen java.lang.NullPointerException: Rendering screen at com.derptech.gui.GuiIronFurnace.drawGuiContainerBackgroundLayer(GuiIronFurnace.java:37) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1057) at net.minecraft.client.Minecraft.run(Minecraft.java:951) 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 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 GradleStartCommon.launch(GradleStartCommon.java:32) at GradleStart.startClient(GradleStart.java:97) at GradleStart.main(GradleStart.java:48) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.derptech.gui.GuiIronFurnace.drawGuiContainerBackgroundLayer(GuiIronFurnace.java:37) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93) -- Screen render details -- Details: Screen name: com.derptech.gui.GuiIronFurnace Mouse location: Scaled: (341, 176). Absolute: (683, 353) Screen size: Scaled: (683, 353). Absolute: (1366, 706). Scale factor of 2 -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player728'/151, l='MpServer', x=-60.50, y=64.62, z=-79.50]] Chunk stats: MultiplayerChunkCache: 541, 541 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-61,64,-70), Chunk: (at 3,4,10 in -4,-5; contains blocks -64,0,-80 to -49,255,-65), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 747 game time, 747 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: 43 total; [EntityZombie['Zombie'/68, l='MpServer', x=-78.96, y=35.89, z=-36.69], EntityZombie['Zombie'/69, l='MpServer', x=-80.50, y=35.00, z=-37.50], EntityZombie['Zombie'/70, l='MpServer', x=-77.99, y=35.20, z=-36.70], EntitySkeleton['Skeleton'/64, l='MpServer', x=-81.63, y=36.00, z=-87.66], EntityZombie['Zombie'/65, l='MpServer', x=-83.97, y=34.00, z=-54.50], EntityWitch['Witch'/66, l='MpServer', x=-80.50, y=29.00, z=-45.50], EntityZombie['Zombie'/67, l='MpServer', x=-80.06, y=35.00, z=-34.59], EntityCreeper['Creeper'/85, l='MpServer', x=-79.50, y=29.00, z=-46.50], EntityClientPlayerMP['Player728'/151, l='MpServer', x=-60.50, y=64.62, z=-79.50], EntityZombie['Zombie'/87, l='MpServer', x=-68.10, y=36.00, z=-38.62], EntityZombie['Zombie'/86, l='MpServer', x=-64.69, y=36.00, z=-38.41], EntityBat['Bat'/35, l='MpServer', x=-133.57, y=55.15, z=-134.37], EntityCreeper['Creeper'/32, l='MpServer', x=-138.97, y=51.00, z=-150.63], EntitySkeleton['Skeleton'/38, l='MpServer', x=-137.88, y=53.00, z=-3.50], EntityCreeper['Creeper'/98, l='MpServer', x=-66.98, y=56.00, z=-14.59], EntityZombie['Zombie'/39, l='MpServer', x=-138.50, y=51.00, z=-1.50], EntityBat['Bat'/36, l='MpServer', x=-133.26, y=18.28, z=-27.49], EntitySkeleton['Skeleton'/96, l='MpServer', x=-70.22, y=35.27, z=-40.70], EntityBat['Bat'/37, l='MpServer', x=-133.51, y=19.15, z=-29.49], EntitySkeleton['Skeleton'/97, l='MpServer', x=-51.94, y=36.00, z=-38.53], EntityCreeper['Creeper'/42, l='MpServer', x=-126.41, y=51.00, z=-138.03], EntityBat['Bat'/110, l='MpServer', x=-11.47, y=15.00, z=-28.72], EntityZombie['Zombie'/43, l='MpServer', x=-125.47, y=20.00, z=-52.97], EntityBat['Bat'/111, l='MpServer', x=-0.28, y=30.00, z=-29.25], EntityZombie['Zombie'/40, l='MpServer', x=-134.50, y=51.00, z=-0.50], EntitySkeleton['Skeleton'/108, l='MpServer', x=-31.50, y=13.00, z=-105.50], EntitySkeleton['Skeleton'/41, l='MpServer', x=-137.50, y=51.00, z=0.50], EntityItem['item.item.seeds'/109, l='MpServer', x=-8.72, y=62.13, z=-94.31], EntityBat['Bat'/46, l='MpServer', x=-116.41, y=41.39, z=-26.26], EntityZombie['Zombie'/106, l='MpServer', x=-44.50, y=24.00, z=-31.50], EntitySkeleton['Skeleton'/47, l='MpServer', x=-125.56, y=57.00, z=-9.06], EntityZombie['Zombie'/44, l='MpServer', x=-124.59, y=20.00, z=-59.13], EntityZombie['Zombie'/45, l='MpServer', x=-125.69, y=20.00, z=-56.72], EntitySkeleton['Skeleton'/105, l='MpServer', x=-38.63, y=11.67, z=-116.70], EntitySkeleton['Skeleton'/119, l='MpServer', x=15.50, y=21.00, z=-127.50], EntitySkeleton['Skeleton'/55, l='MpServer', x=-108.13, y=30.00, z=-130.31], EntitySkeleton['Skeleton'/54, l='MpServer', x=-107.30, y=29.02, z=-131.30], EntityCreeper['Creeper'/113, l='MpServer', x=-4.59, y=16.00, z=0.00], EntityBat['Bat'/112, l='MpServer', x=6.23, y=25.00, z=-25.99], EntityCreeper['Creeper'/57, l='MpServer', x=-105.50, y=46.00, z=-58.50], EntitySkeleton['Skeleton'/56, l='MpServer', x=-107.50, y=29.00, z=-126.50], EntityCreeper['Creeper'/121, l='MpServer', x=4.50, y=26.00, z=-24.50], EntityCreeper['Creeper'/120, l='MpServer', x=5.53, y=24.00, z=-26.72]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556) at net.minecraft.client.Minecraft.run(Minecraft.java:972) 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 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 GradleStartCommon.launch(GradleStartCommon.java:32) at GradleStart.startClient(GradleStart.java:97) at GradleStart.main(GradleStart.java:48) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_71, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 867308360 bytes (827 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: 12, tallocated: 94 FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available derptech{0.0.1} [Derptech] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 9.17.10.2867, 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) the line of the file it is crashing at is this if (this.tileFurnace.isBurning()){ i1 = this.tileFurnace.getBurnTimeRemainingScaled(12); this.drawTexturedModalRect(k + 56, l + 36 + 12 - i1, 176, 12 - i1, 14, i1 + 2); } that is the code starting at line 37 and ending on line 40
November 8, 201410 yr Author this is it package com.derptech.gui; import org.lwjgl.opengl.GL11; import com.derptech.inventory.ContainerIronFurnace; import com.dertech.tile_entity.TileEntityIronFurnace; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.resources.I18n; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.util.ResourceLocation; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class GuiIronFurnace extends GuiContainer{ private static final ResourceLocation furnaceGuiTextures = new ResourceLocation(":textures/client/gui/furnace.png"); private TileEntityIronFurnace tileFurnace; public GuiIronFurnace(InventoryPlayer invPlayer, TileEntityIronFurnace tile) { super(new ContainerIronFurnace(invPlayer, tile)); this.tileFurnace = tile; } protected void drawGuiContainerForegroundLayer(int par1, int par2){ String string = this.tileFurnace.hasCustomInventoryName() ? this.tileFurnace.getInventoryName() : I18n.format(this.tileFurnace.getInventoryName(), new Object[0]); this.fontRendererObj.drawString(string, this.xSize / 2 - this.fontRendererObj.getStringWidth(string), 6, 4210752); this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 94, 4210752); } @Override protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.mc.getTextureManager().bindTexture(furnaceGuiTextures); int k = (this.width - this.xSize) / 2; int l = (this.height - this.ySize) / 2; this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize); int i1; if (this.tileFurnace.isBurning()){ i1 = this.tileFurnace.getBurnTimeRemainingScaled(12); this.drawTexturedModalRect(k + 56, l + 36 + 12 - i1, 176, 12 - i1, 14, i1 + 2); } i1 = this.tileFurnace.getCookProgressScaled(24); this.drawTexturedModalRect(k + 79, l + 34, 176, 14, i1 + 1, 16); } }
November 8, 201410 yr Author ok so it is still crashing after i did a bit of a fix, basically had my BlastFurnace.java class extending Block when it needed to Extend BlockContainer....... but it is still crashign when i right click on it, i am off to bed for the night but i am just going to leave this here so you guys can try to help me figure this out: https://github.com/hihellobyeoh/Advanced-Tunnelboring
November 8, 201410 yr Author There is still no GuiHandler in that repo. yes there is, it is under the handler folder, here is a link directly to it https://github.com/hihellobyeoh/Advanced-Tunnelboring/tree/master/src/main/java/com/advancedtunnelbore/handler
November 8, 201410 yr You did in fact merely forget to register your GUI handler. Like diesieben first said, you must not only have a GUI handler, but also register it. I may have missed it but nowhere in your mod files did I see the GUI handler actually being registered with the NetworkRegistry. NetworkRegistry.INSTANCE.registerGuiHandler(modinstance, handler);
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.