Jump to content

[HELP][1.4.2]New Machine Block GUI


Kore

Recommended Posts

Alright, so I have made a machine that has to deal with a bucket as fuel and Black Sand as the input... I have created everything correctly but I do not know how to open the GUI

Here is my Error Report

 

 

2012-10-30 19:25:29 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.2.4.420 for Minecraft 1.4.2 loading

2012-10-30 19:25:32 [iNFO] [sTDOUT] 27 achievements

2012-10-30 19:25:32 [iNFO] [sTDOUT] 208 recipes

2012-10-30 19:25:32 [iNFO] [sTDOUT] Setting user: Player367, -

2012-10-30 19:25:32 [iNFO] [sTDERR] Client asked for parameter: server

2012-10-30 19:25:32 [iNFO] [sTDOUT] LWJGL Version: 2.4.2

2012-10-30 19:25:33 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization

2012-10-30 19:25:33 [iNFO] [sTDOUT] MinecraftForge v6.0.1.337 Initialized

2012-10-30 19:25:33 [iNFO] [ForgeModLoader] MinecraftForge v6.0.1.337 Initialized

2012-10-30 19:25:33 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization

2012-10-30 19:25:34 [iNFO] [ForgeModLoader] Searching C:\Users\Joe\Desktop\KorCraft\MCP\jars\mods for mods

2012-10-30 19:25:35 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2012-10-30 19:25:35 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2012-10-30 19:25:36 [iNFO] [sTDOUT] Starting up SoundSystem...

2012-10-30 19:25:36 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2012-10-30 19:25:36 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2012-10-30 19:25:37 [iNFO] [sTDOUT] OpenAL initialized.

2012-10-30 19:25:37 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2012-10-30 19:25:40 [iNFO] [ForgeModLoader] Loading dimension 0 (Testing) (net.minecraft.src.IntegratedServer@e04f32a)

2012-10-30 19:25:40 [iNFO] [ForgeModLoader] Loading dimension 1 (Testing) (net.minecraft.src.IntegratedServer@e04f32a)

2012-10-30 19:25:40 [iNFO] [ForgeModLoader] Loading dimension -1 (Testing) (net.minecraft.src.IntegratedServer@e04f32a)

2012-10-30 19:25:45 [sEVERE] [ForgeModLoader] A critical server error occured handling a packet, kicking net.minecraft.src.NetServerHandler@100a494b

java.lang.ClassCastException: net.minecraft.src.TileEntityFurnace cannot be cast to korecraft.TileEntityJig

at korecraft.MachineJig.onBlockActivated(MachineJig.java:148)

at net.minecraft.src.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:382)

at net.minecraft.src.NetServerHandler.handlePlace(NetServerHandler.java:516)

at net.minecraft.src.Packet15Place.processPacket(Packet15Place.java:65)

at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:78)

at net.minecraft.src.NetServerHandler.networkTick(NetServerHandler.java:64)

at net.minecraft.src.NetworkListenThread.networkTick(NetworkListenThread.java:46)

at net.minecraft.src.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:111)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:593)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:514)

at net.minecraft.src.IntegratedServer.tick(IntegratedServer.java:110)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:429)

at net.minecraft.src.ThreadMinecraftServer.run(ThreadMinecraftServer.java:17)

2012-10-30 19:25:46 [iNFO] [ForgeModLoader] Unloading dimension 0

2012-10-30 19:25:46 [iNFO] [ForgeModLoader] Unloading dimension -1

2012-10-30 19:25:46 [iNFO] [ForgeModLoader] Unloading dimension 1

2012-10-30 19:25:48 [iNFO] [sTDERR] Someone is closing me!

 

 

So what I narrowed it down to is:

 

 

at korecraft.MachineJig.onBlockActivated(MachineJig.java:148)

 

 

Here is the method it is referring to

 

 

    public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)

    {

        if (par1World.isRemote)

        {

            return true;

        }

        else

        {

            TileEntityJig var10 = (TileEntityJig)par1World.getBlockTileEntity(par2, par3, par4);

 

            if (var10 != null)

            {

                par5EntityPlayer.displayGUIFurnace(var10);

                //Here is my problem, how do I add a new display?

            }

 

            return true;

        }

    }

 

 

Anyone have any ideas?

 

The Korecraft Mod

Link to comment
Share on other sites

I fixed that, and it had nothing to do with the furnace part, but I now have the block rendered have a recipe and have the gui, but when I open it and try to play an item in the slot the item just gets put back in my inv(after 1ms of holding it)

The Korecraft Mod

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.