From 96238d6b53ee064c649cc1f6a2be305f21390bb8 Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Thu, 26 Jun 2014 04:52:32 -0400 Subject: [PATCH] Minor Change Minor spacing and annotation changes. --- .../java/StevenDimDoors/mod_pocketDim/core/DimLink.java | 3 +++ .../java/StevenDimDoors/mod_pocketDim/util/Point4D.java | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/StevenDimDoors/mod_pocketDim/core/DimLink.java b/src/main/java/StevenDimDoors/mod_pocketDim/core/DimLink.java index 8ee3d9af..8b0e3d8f 100644 --- a/src/main/java/StevenDimDoors/mod_pocketDim/core/DimLink.java +++ b/src/main/java/StevenDimDoors/mod_pocketDim/core/DimLink.java @@ -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() : ""); diff --git a/src/main/java/StevenDimDoors/mod_pocketDim/util/Point4D.java b/src/main/java/StevenDimDoors/mod_pocketDim/util/Point4D.java index 2b6c4c07..2693e63b 100644 --- a/src/main/java/StevenDimDoors/mod_pocketDim/util/Point4D.java +++ b/src/main/java/StevenDimDoors/mod_pocketDim/util/Point4D.java @@ -141,12 +141,14 @@ public final class Point4D implements Comparable public Point3D toPoint3D() { - return new Point3D(this.x,this.y,this.z); + return new Point3D(this.x, this.y, this.z); } + public int[] toIntArray() { - return new int[]{x,y,z,dimension}; + return new int[] {x, y, z, dimension}; } + public boolean equals(Point4D other) { if (this == other)