Posted June 9, 20169 yr So, while updating for 1.9.4, I noticed Block.getBlockHardness() is deprecated. I assume that this is being phased out in favor of using IBlockState/BlockStateContainer. Unfortunately I know zero about BlockState and Google refuses to cough up anything other than crash logs, or BlockContainers (because Google hates programmers... ) How do I get Hardness out of a block these days?
June 9, 20169 yr Author You call getBlockHardness on the IBlockState , which you get from the world. The irony is that I had the IBlockState already, because getBlockHardness was updated to ask for it. Doesn't do anything with it, but it asks for it. Good enough for me!
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.