@return the direction the stairs ascend towards
()
| 28 | * @return the direction the stairs ascend towards |
| 29 | */ |
| 30 | public BlockFace getAscendingDirection() { |
| 31 | byte data = getData(); |
| 32 | |
| 33 | switch (data) { |
| 34 | case 0x0: |
| 35 | default: |
| 36 | return BlockFace.SOUTH; |
| 37 | |
| 38 | case 0x1: |
| 39 | return BlockFace.NORTH; |
| 40 | |
| 41 | case 0x2: |
| 42 | return BlockFace.WEST; |
| 43 | |
| 44 | case 0x3: |
| 45 | return BlockFace.EAST; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @return the direction the stairs descend towards |
no test coverage detected