Started work on ender rail.

This commit is contained in:
CrazyPants committed 2014-10-23 15:56:14 +08:00
commit 0d4c84c995
18 files changed
+430 -10

No files matched your search

@@ -36,6 +36,11 @@ public final class BlockCoord {
dz = z - other.z;
return (dx * dx + dy * dy + dz * dz);
}
public int distance(BlockCoord other) {
double dsq = distanceSquared(other);
return (int)Math.ceil(Math.sqrt(dsq));
}
@Override
public int hashCode() {