26 lines
470 B
Java
26 lines
470 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 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;
|
||
|
}
|
||
|
|
||
|
}
|