CarbonBasedGhost Posted September 5, 2014 Posted September 5, 2014 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? Quote
Eternaldoom Posted September 5, 2014 Posted September 5, 2014 Block.getBlockFromItem(ItemStackInstance.getItem()) Quote Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
sequituri Posted September 5, 2014 Posted September 5, 2014 Block.getBlockFromItem(ItemStackInstance.getItem()) should be itemStackInstance.getItem() as property, method, parameter, and variable names should start with lowercase. Quote -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
Recommended Posts
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.