diff --git a/src/main/java/net/knarcraft/stargate/RelativeBlockVector.java b/src/main/java/net/knarcraft/stargate/RelativeBlockVector.java index 3160361..eab9f91 100644 --- a/src/main/java/net/knarcraft/stargate/RelativeBlockVector.java +++ b/src/main/java/net/knarcraft/stargate/RelativeBlockVector.java @@ -54,4 +54,19 @@ public class RelativeBlockVector { return distance; } + @Override + public String toString() { + return String.format("right = %d, depth = %d, distance = %d", right, depth, distance); + } + + @Override + public boolean equals(Object other) { + if (!(other instanceof RelativeBlockVector)) { + return false; + } + RelativeBlockVector otherVector = (RelativeBlockVector) other; + return this.right == otherVector.right && this.depth == otherVector.depth && + this.distance == otherVector.distance; + } + }