Jump to content

[1.8 UD] [Solved] Alternative to Item.doesContainerItemLeaveCraftingGrid()?


Recommended Posts

Posted

In 1.7 I could override Item.doesContainerItemLeaveCraftingGrid() to set if an item's container leaves the crafting grid once an item is crafted. However, it seems this function no longer exists in 1.8, and looking through the Item class I haven't found any similarly named functions. What am I supposed to use instead of this?

 

I have looked at this thread: http://www.minecraftforge.net/forum/index.php/topic,27948.msg143500.html, and its answer is simply the same function I was using in 1.7.

Posted

I have an item that is supposed to use up durability each time it is crafted in a recipe. In 1.7 I simply overrode doesContainerItemLeaveCraftingGrid() to return false, and overrode getContainerItem() to be itself with +1 damage. How do I do that in 1.8?

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.