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

Method getRelative

src/redempt/redlib/misc/LocationUtils.java:488–494  ·  view source on GitHub ↗
(Node block, Block start, Block end, int x, int y, int z)

Source from the content-addressed store, hash-verified

486 }
487
488 private static Node getRelative(Node block, Block start, Block end, int x, int y, int z) {
489 Block b = block.block.getRelative(x, y, z);
490 int score = score(block, start, end);
491 Node node = new Node(b, score);
492 node.parent = block;
493 return node;
494 }
495
496 private static int score(Node node, Block start, Block end) {
497 return distance(node.block, start) + distance(node.block, end) * 2;

Callers 1

getAdjacentMethod · 0.95

Calls 1

scoreMethod · 0.95

Tested by

no test coverage detected