Convert the BlockState into the correct metadata value
(IBlockState state)
| 265 | * Convert the BlockState into the correct metadata value |
| 266 | */ |
| 267 | public int getMetaFromState(IBlockState state) |
| 268 | { |
| 269 | if (state != null && !state.getPropertyNames().isEmpty()) |
| 270 | { |
| 271 | throw new IllegalArgumentException("Don\'t know how to convert " + state + " back into data..."); |
| 272 | } |
| 273 | else |
| 274 | { |
| 275 | return 0; |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | /** |
| 280 | * Get the actual Block state of this Block at the given position. This applies properties not visible in the |