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

Method distance

src/redempt/redlib/misc/LocationUtils.java:500–504  ·  view source on GitHub ↗
(Block first, Block second)

Source from the content-addressed store, hash-verified

498 }
499
500 private static int distance(Block first, Block second) {
501 return Math.abs(first.getX() - second.getX())
502 + Math.abs(first.getY() - second.getY())
503 + Math.abs(first.getZ() - second.getZ());
504 }
505
506 private static class Node {
507

Callers 4

pathfindMethod · 0.95
scoreMethod · 0.95
getPathMethod · 0.80
clusterMethod · 0.80

Calls 3

getYMethod · 0.80
getXMethod · 0.45
getZMethod · 0.45

Tested by

no test coverage detected