you could look to see how the water bucket does it or use a handler for that...I have never needed to, so I honestly dont know of any step by step that I can help you with sorry...
In my BlockSmoker class, 'displayGUISmoker' is underlined in red, with the error being 'the method displayGUISmoker(TileEntitySmoker) is undefined for the type EntityPlayer.
Pastebin Link:http://pastebin.com/NiqAZN8w
And in my basic class(equivalent to his furnacetutorial class),'GuiHandlerFurnace' is underlined in red,with the error being 'GuiHandlerFurnace cannot be resolved to a variable'.
Pastebin Link:http://pastebin.com/QqGM6LHd
In my BlockSmoker class, 'displayGUISmoker' is underlined in red, with the error being 'the method displayGUISmoker(TileEntitySmoker) is undefined for the type EntityPlayer.
Pastebin Link:http://pastebin.com/NiqAZN8w
And in my basic class(equivalent to his furnacetutorial class),'GuiHandlerFurnace' is underlined in red,with the error being 'GuiHandlerFurnace cannot be resolved to a variable'.
Pastebin Link:http://pastebin.com/QqGM6LHd
Should go back and watch the videos again, your answers are there...watch it through one time first and then try it along...
Should go back and watch the videos again, your answers are there...watch it through one time first and then try it along...
Wow...I have no idea how i missed that,its basically the first 5 minutes of the 5th episode:P Most of the problems are fixed now, but back in my 'Basic' class, in 'NetworkRegistry.instance().registerGuiHandler(this,guiHandlerFurnace);','guiHandlerFurnace' is underlined in red, with the error being that it cannot be resolved to a variable.
This should be the last error,thanks!:)
Wow...I have no idea how i missed that,its basically the first 5 minutes of the 5th episode:P Most of the problems are fixed now, but back in my 'Basic' class, in 'NetworkRegistry.instance().registerGuiHandler(this,guiHandlerFurnace);','guiHandlerFurnace' is underlined in red, with the error being that it cannot be resolved to a variable.
This should be the last error,thanks!
I will need to see that whole mod class to see what the error is for, not just the part with the error....but again, look at the first video and you will see how the mod class should look...
I will need to see that whole mod class to see what the error is for, not just the part with the error....but again, look at the first video and you will see how the mod class should look...
Mod Class Link: http://pastebin.com/GcBU5pEtDon't mind the rest of the stuff, just started learning how to code:P
Hey, I got the dual input furnace working, but I was wondering how to do a metadata sensitive version of the recipe method. Thanks!
Take a look at the vanilla FurnaceRecipes class, it contains a metadata sensitive version. It's simply using Arrays.asList(Integer, Integer, Integer, etc.) for all the values you need, using the returned List as the key for your recipes HashMap. It will make sense when you look at the class, I promise
Take a look at the vanilla FurnaceRecipes class, it contains a metadata sensitive version. It's simply using Arrays.asList(Integer, Integer, Integer, etc.) for all the values you need, using the returned List as the key for your recipes HashMap. It will make sense when you look at the class, I promise
Take a look at the vanilla FurnaceRecipes class, it contains a metadata sensitive version. It's simply using Arrays.asList(Integer, Integer, Integer, etc.) for all the values you need, using the returned List as the key for your recipes HashMap. It will make sense when you look at the class, I promise
I kinda have it, but it's not working for the dual input with the two slots...
Would I be able to get things to working with ItemStack's? Then I could possibly make some items cost multiple ingots.
I kinda have it, but it's not working for the dual input with the two slots...
As I am not real good at hash maps, I can only say that I know for sure it is the best way to do it. I think coolAlias has a tutorial on it if you need more info. He is quite the resourceful guy, and helped me quite a few times with my project. I am sure he is right on spot with the furnace recipe class, I will have a look at it later and see if I can help any (been wanting to learn how they work anyway so I can make a new table using hash maps....
As I am not real good at hash maps, I can only say that I know for sure it is the best way to do it. I think coolAlias has a tutorial on it if you need more info. He is quite the resourceful guy, and helped me quite a few times with my project. I am sure he is right on spot with the furnace recipe class, I will have a look at it later and see if I can help any (been wanting to learn how they work anyway so I can make a new table using hash maps....
I kinda have it, but it's not working for the dual input with the two slots...
Would I be able to get things to working with ItemStack's? Then I could possibly make some items cost multiple ingots.
Do you mean you want a SINGLE slot to be able to burn through TWO or more items at a time? If that's the case, then you will need 3 integer values per ItemStack as the key in your HashMap.
map.put(Arrays.asList(itemID, metadata, stacksize, ... repeat 3 parameters per itemstack), itemStackYouWantToReturn);
Of course you'd have to update the other methods to account for the change in number of parameters.
Do you mean you want a SINGLE slot to be able to burn through TWO or more items at a time? If that's the case, then you will need 3 integer values per ItemStack as the key in your HashMap.
map.put(Arrays.asList(itemID, metadata, stacksize, ... repeat 3 parameters per itemstack), itemStackYouWantToReturn);
Of course you'd have to update the other methods to account for the change in number of parameters.
I did mean double slot, but it would also be good to have it so it can burn multiple items from the same stack at one time. For example, it burns to from one slot and only one from the other.
I did mean double slot, but it would also be good to have it so it can burn multiple items from the same stack at one time. For example, it burns to from one slot and only one from the other.
So... what's the problem you're having? Other than it's not working for dual input, can you give any more detail? I'm not sure if you saw, but I have a tutorial on this issue that covers all the information that should be necessary to convert a normal furnace into a dual or more input furnace. Perhaps reading through that (again, if necessary) will help clear some things up.
Find out how I generate....coolAlias...world structure generation and rotation tool...
Pastebin Link:http://pastebin.com/NiqAZN8w
And in my basic class(equivalent to his furnacetutorial class),'GuiHandlerFurnace' is underlined in red,with the error being 'GuiHandlerFurnace cannot be resolved to a variable'.
Pastebin Link:http://pastebin.com/QqGM6LHd
Should go back and watch the videos again, your answers are there...watch it through one time first and then try it along...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Wow...I have no idea how i missed that,its basically the first 5 minutes of the 5th episode:P Most of the problems are fixed now, but back in my 'Basic' class, in 'NetworkRegistry.instance().registerGuiHandler(this,guiHandlerFurnace);','guiHandlerFurnace' is underlined in red, with the error being that it cannot be resolved to a variable.
This should be the last error,thanks!:)
I will need to see that whole mod class to see what the error is for, not just the part with the error....but again, look at the first video and you will see how the mod class should look...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Mod Class Link: http://pastebin.com/GcBU5pEtDon't mind the rest of the stuff, just started learning how to code:PNevermind,figured it out already
Take a look at the vanilla FurnaceRecipes class, it contains a metadata sensitive version. It's simply using Arrays.asList(Integer, Integer, Integer, etc.) for all the values you need, using the returned List as the key for your recipes HashMap. It will make sense when you look at the class, I promise
Ok, thanks again!
I kinda have it, but it's not working for the dual input with the two slots...
Would I be able to get things to working with ItemStack's? Then I could possibly make some items cost multiple ingots.
As I am not real good at hash maps, I can only say that I know for sure it is the best way to do it. I think coolAlias has a tutorial on it if you need more info. He is quite the resourceful guy, and helped me quite a few times with my project. I am sure he is right on spot with the furnace recipe class, I will have a look at it later and see if I can help any (been wanting to learn how they work anyway so I can make a new table using hash maps....
Find out how I generate....coolAlias...world structure generation and rotation tool...
Ok. Thanks for your help!
Have made some progress in rewriting the furnace recipes class, should be able to fully test it tomorrow and let you know...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Ok, thanks a lot!
Well Ia mnot having much luck with it yet, but this guy is having the same issue....so follow this as well....
Find out how I generate....coolAlias...world structure generation and rotation tool...
Ok.
Do you mean you want a SINGLE slot to be able to burn through TWO or more items at a time? If that's the case, then you will need 3 integer values per ItemStack as the key in your HashMap.
Of course you'd have to update the other methods to account for the change in number of parameters.
I did mean double slot, but it would also be good to have it so it can burn multiple items from the same stack at one time. For example, it burns to from one slot and only one from the other.
So... what's the problem you're having? Other than it's not working for dual input, can you give any more detail? I'm not sure if you saw, but I have a tutorial on this issue that covers all the information that should be necessary to convert a normal furnace into a dual or more input furnace. Perhaps reading through that (again, if necessary) will help clear some things up.