MCPcopy Create free account
hub / github.com/Bukkit/Bukkit / getAscendingDirection

Method getAscendingDirection

src/main/java/org/bukkit/material/Stairs.java:30–47  ·  view source on GitHub ↗

@return the direction the stairs ascend towards

()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

getDataMethod · 0.65

Tested by

no test coverage detected