Get a unique ID for the given BlockState, containing both BlockID and metadata
(IBlockState state)
| 160 | * Get a unique ID for the given BlockState, containing both BlockID and metadata |
| 161 | */ |
| 162 | public static int getStateId(IBlockState state) |
| 163 | { |
| 164 | Block block = state.getBlock(); |
| 165 | return getIdFromBlock(block) + (block.getMetaFromState(state) << 12); |
| 166 | } |
| 167 | |
| 168 | public static Block getBlockById(int id) |
| 169 | { |
no test coverage detected