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

Method score

src/redempt/redlib/misc/LocationUtils.java:496–498  ·  view source on GitHub ↗
(Node node, Block start, Block end)

Source from the content-addressed store, hash-verified

494 }
495
496 private static int score(Node node, Block start, Block end) {
497 return distance(node.block, start) + distance(node.block, end) * 2;
498 }
499
500 private static int distance(Block first, Block second) {
501 return Math.abs(first.getX() - second.getX())

Callers 2

pathfindMethod · 0.95
getRelativeMethod · 0.95

Calls 1

distanceMethod · 0.95

Tested by

no test coverage detected