Set the direction the stair part of the block is facing
(BlockFace face)
| 57 | * Set the direction the stair part of the block is facing |
| 58 | */ |
| 59 | public void setFacingDirection(BlockFace face) { |
| 60 | byte data; |
| 61 | |
| 62 | switch (face) { |
| 63 | case NORTH: |
| 64 | default: |
| 65 | data = 0x0; |
| 66 | break; |
| 67 | |
| 68 | case SOUTH: |
| 69 | data = 0x1; |
| 70 | break; |
| 71 | |
| 72 | case EAST: |
| 73 | data = 0x2; |
| 74 | break; |
| 75 | |
| 76 | case WEST: |
| 77 | data = 0x3; |
| 78 | break; |
| 79 | } |
| 80 | |
| 81 | setData(data); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * @return the direction the stair part of the block is facing |