MCPcopy Create free account
hub / github.com/boxbeam/RedLib / getDirection

Method getDirection

src/redempt/redlib/misc/LocationUtils.java:122–124  ·  view source on GitHub ↗

Gets the Vector direction of a BlockFace. For use in versions below 1.13. @param face The block face @return The vector representing the direction

(BlockFace face)

Source from the content-addressed store, hash-verified

120 * @return The vector representing the direction
121 */
122 public static Vector getDirection(BlockFace face) {
123 return new Vector(face.getModX(), face.getModY(), face.getModZ());
124 }
125
126 private static DecimalFormat timeFormat = new DecimalFormat("0.#");
127

Callers 9

expandMethod · 0.95
expandMethod · 0.95
expandMethod · 0.95
handlePistonMethod · 0.80
onPickBlockMethod · 0.80
getPathMethod · 0.80
registerProtectionsMethod · 0.80
getSurfaceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected