MCPcopy Create free account
hub / github.com/Teneted/Tenet / setFacingDirection

Method setFacingDirection

src/main/java/org/bukkit/material/Ladder.java:61–85  ·  view source on GitHub ↗

Sets the direction this ladder is facing

(BlockFace face)

Source from the content-addressed store, hash-verified

59 * Sets the direction this ladder is facing
60 */
61 @Override
62 public void setFacingDirection(BlockFace face) {
63 byte data = (byte) 0x0;
64
65 switch (face) {
66 case SOUTH:
67 data = 0x2;
68 break;
69
70 case NORTH:
71 data = 0x3;
72 break;
73
74 case EAST:
75 data = 0x4;
76 break;
77
78 case WEST:
79 data = 0x5;
80 break;
81 }
82
83 setData(data);
84
85 }
86
87 @Override
88 public Ladder clone() {

Callers

nothing calls this directly

Calls 1

setDataMethod · 0.65

Tested by

no test coverage detected