Add Block State API

API to get the block state(addition in 1.8 to replace metadata) of a block.