TinkersConstruct/tinker/common/CoordTuple.java
2013-02-11 12:25:40 -08:00

28 lines
449 B
Java

package tinker.common;
public class CoordTuple
{
public final int x;
public final int y;
public final int z;
public CoordTuple(int posX, int posY, int posZ)
{
x = posX;
y = posY;
z = posZ;
}
public boolean equals(CoordTuple coord)
{
if (coord == null)
return false;
else if (coord == this)
return true;
else if (coord.x == this.x && coord.y == this.y && coord.z == this.z)
return true;
else
return false;
}
}