32 lines
571 B
Java
32 lines
571 B
Java
package wtf.beatrice.limbomanager.objects;
|
|
|
|
public class Coordinates
|
|
{
|
|
|
|
private int x, z;
|
|
|
|
public Coordinates(int x, int z)
|
|
{
|
|
this.x = x;
|
|
this.z = z;
|
|
}
|
|
|
|
public Coordinates(Coordinates old)
|
|
{
|
|
this.x = old.x;
|
|
this.z = old.z;
|
|
}
|
|
|
|
public void setX(int x) { this.x = x; }
|
|
public void setZ(int z) { this.z = z; }
|
|
|
|
public int getX() { return x; }
|
|
public int getZ() { return z; }
|
|
|
|
public boolean equals(Coordinates coordinates)
|
|
{
|
|
return x == coordinates.x && z == coordinates.z;
|
|
}
|
|
|
|
}
|