Minor Change
Minor spacing and annotation changes.
This commit is contained in:
parent
448890207f
commit
96238d6b53
2 changed files with 7 additions and 2 deletions
|
@ -60,6 +60,7 @@ public abstract class DimLink
|
||||||
{
|
{
|
||||||
return tail.getDestination();
|
return tail.getDestination();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getDestinationOrientation()
|
public int getDestinationOrientation()
|
||||||
{
|
{
|
||||||
DimLink link = PocketManager.getLink(this.destination().getX(), this.destination().getY(), this.destination().getZ(), this.destination().getDimension());
|
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;
|
return (this.orientation()+2)%4;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasDestination()
|
public boolean hasDestination()
|
||||||
{
|
{
|
||||||
return (tail.getDestination() != null);
|
return (tail.getDestination() != null);
|
||||||
|
@ -94,6 +96,7 @@ public abstract class DimLink
|
||||||
return tail.getLinkType();
|
return tail.getLinkType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return link.point + " -> " + (hasDestination() ? destination() : "");
|
return link.point + " -> " + (hasDestination() ? destination() : "");
|
||||||
|
|
|
@ -141,12 +141,14 @@ public final class Point4D implements Comparable<Point4D>
|
||||||
|
|
||||||
public Point3D toPoint3D()
|
public Point3D toPoint3D()
|
||||||
{
|
{
|
||||||
return new Point3D(this.x,this.y,this.z);
|
return new Point3D(this.x, this.y, this.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int[] toIntArray()
|
public int[] toIntArray()
|
||||||
{
|
{
|
||||||
return new int[]{x,y,z,dimension};
|
return new int[] {x, y, z, dimension};
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean equals(Point4D other)
|
public boolean equals(Point4D other)
|
||||||
{
|
{
|
||||||
if (this == other)
|
if (this == other)
|
||||||
|
|
Loading…
Reference in a new issue