2021-02-07 03:37:25 +01:00
|
|
|
package net.knarcraft.stargate;
|
|
|
|
|
|
|
|
/**
|
2021-02-12 00:26:47 +01:00
|
|
|
* This stores a block location as a vector in an alternate coordinate system
|
|
|
|
*
|
|
|
|
* <p></p>
|
2021-02-07 03:37:25 +01:00
|
|
|
*/
|
|
|
|
public class RelativeBlockVector {
|
|
|
|
|
2021-02-12 00:26:47 +01:00
|
|
|
private int right;
|
|
|
|
private int depth;
|
|
|
|
private int distance;
|
2021-02-07 03:37:25 +01:00
|
|
|
|
2021-02-12 00:26:47 +01:00
|
|
|
/**
|
|
|
|
* Instantiates a new relative block vector
|
|
|
|
* @param right <p>The x coordinate in the gate description</p>
|
|
|
|
* @param depth <p>The y coordinate in the gate description</p>
|
|
|
|
* @param distance <p></p>
|
|
|
|
*/
|
2021-02-07 03:37:25 +01:00
|
|
|
public RelativeBlockVector(int right, int depth, int distance) {
|
|
|
|
this.right = right;
|
|
|
|
this.depth = depth;
|
|
|
|
this.distance = distance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getRight() {
|
|
|
|
return right;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getDepth() {
|
|
|
|
return depth;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getDistance() {
|
|
|
|
return distance;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|