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

Method getDirection

src/main/java/org/bukkit/block/BlockFace.java:78–85  ·  view source on GitHub ↗

Gets the normal vector corresponding to this block face. @return the normal vector

()

Source from the content-addressed store, hash-verified

76 * @return the normal vector
77 */
78 @NotNull
79 public Vector getDirection() {
80 Vector direction = new Vector(modX, modY, modZ);
81 if (modX != 0 || modY != 0 || modZ != 0) {
82 direction.normalize();
83 }
84 return direction;
85 }
86
87 @NotNull
88 public BlockFace getOppositeFace() {

Callers

nothing calls this directly

Calls 1

normalizeMethod · 0.95

Tested by

no test coverage detected