Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

No addSmelting in FurnaceRecipes any more?


nmcl
 Share

Recommended Posts

As mentioned http://www.minecraftforge.net/forum/index.php/topic,16991.0.html I'm working my way through the mod wiki and I've come upon some issues in the Crafting & Smelting example. Once I removed the blockID, there's now an issue that the following line is invalid:

 

FurnaceRecipes.smelting().addSmelting(Blocks.wool, 15,

                        new ItemStack(Blocks.wool, 1, 0), 0.1f);

 

I've checked the source (and the jars), but there's no addSmelting in FurnaceRecipes. Can someone point me at the equivalent in 1.7.x?

 

Thanks again in advance for any help.

Link to comment
Share on other sites

Thanks. I assume the 2nd parameter (int) in the old signature is not needed any more in the addSmelting method within GameRegistry? The other uses of GameRegistry.addSmelting within the Generic example don't have an int either, so maybe the assumption is correct. But it's always good to get confirmation from someone in the know :-)

Link to comment
Share on other sites

Yes, that may well be the case. However, the wiki example calls out the need to use the metadata parameter explicitly and FurnaceRecipes over GameRegistry:

 

"You may have noticed that the input does not accept a metadata or damage value. This is quite silly, but the GameRegistry doesn't have an addSmelting variant that takes metadata. For that, we will need to input FurnaceRecipes, get its instance, and then use its addSmelting method.

The example here is burning black wool to get white wool.

 

FurnaceRecipes.smelting().addSmelting(Block.cloth.blockID, 15, new ItemStack(Block.cloth, 1, 0), 0.1f);"

 

Is there an equivalent now, or doesn't it matter?

 

And thanks again for your help. It is much appreciated.

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
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.