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

Method getZLength

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

Source from the content-addressed store, hash-verified

201 }
202
203 private double getZLength(@NotNull Vector direction) {
204 return Math.abs(direction.getZ());
205 }
206
207 private double getPosition(double direction, double position, int blockPosition) {
208 return direction > 0 ? (position - blockPosition) : (blockPosition + 1 - position);

Callers 1

BlockIteratorMethod · 0.95

Calls 1

getZMethod · 0.65

Tested by

no test coverage detected