Various Fixes #166

Merged
SenseiKiwi merged 19 commits from master into master 2014-06-26 23:17:34 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 96238d6b53 - Show all commits

View File

@@ -60,6 +60,7 @@ public abstract class DimLink
{
return tail.getDestination();
}
public int getDestinationOrientation()
{
DimLink link = PocketManager.getLink(this.destination().getX(), this.destination().getY(), this.destination().getZ(), this.destination().getDimension());
@@ -69,6 +70,7 @@ public abstract class DimLink
}
return (this.orientation()+2)%4;
}
public boolean hasDestination()
{
return (tail.getDestination() != null);
@@ -94,6 +96,7 @@ public abstract class DimLink
return tail.getLinkType();
}
@Override
public String toString()
{
return link.point + " -> " + (hasDestination() ? destination() : "");

View File

@@ -143,10 +143,12 @@ public final class Point4D implements Comparable<Point4D>
{
return new Point3D(this.x, this.y, this.z);
}
public int[] toIntArray()
{
return new int[] {x, y, z, dimension};
}
public boolean equals(Point4D other)
{
if (this == other)