Posted September 5, 201411 yr So I have come across this problem multiple times and still have no solution. Is there anyway to get a Block from and ItemStack? This can be done for items by ItemStackInstance.getItem(); So is there anyway to do this with blocks?
September 5, 201411 yr Block.getBlockFromItem(ItemStackInstance.getItem()) Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
September 5, 201411 yr Block.getBlockFromItem(ItemStackInstance.getItem()) should be itemStackInstance.getItem() as property, method, parameter, and variable names should start with lowercase. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
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.