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

Method getXFace

src/main/java/org/bukkit/util/BlockIterator.java:183–185  ·  view source on GitHub ↗
(@NotNull Vector direction)

Source from the content-addressed store, hash-verified

181 }
182
183 private BlockFace getXFace(@NotNull Vector direction) {
184 return ((direction.getX() > 0) ? BlockFace.EAST : BlockFace.WEST);
185 }
186
187 private BlockFace getYFace(@NotNull Vector direction) {
188 return ((direction.getY() > 0) ? BlockFace.UP : BlockFace.DOWN);

Callers 1

BlockIteratorMethod · 0.95

Calls 1

getXMethod · 0.65

Tested by

no test coverage detected