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

Method setFacingDirection

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

Set the direction the stair part of the block is facing

(BlockFace face)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setDataMethod · 0.65

Tested by

no test coverage detected