mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Started work on ender rail.
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user