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

Method getFacing

src/main/java/org/bukkit/material/Pumpkin.java:68–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 public BlockFace getFacing() {
69 byte data = getData();
70
71 switch (data) {
72 case 0x0:
73 return BlockFace.EAST;
74
75 case 0x1:
76 return BlockFace.SOUTH;
77
78 case 0x2:
79 return BlockFace.WEST;
80
81 case 0x3:
82 default:
83 return BlockFace.SOUTH;
84 }
85 }
86
87 @Override
88 public String toString() {

Callers 1

toStringMethod · 0.95

Calls 1

getDataMethod · 0.65

Tested by

no test coverage detected