2013-04-20 22:38:50 -07:00

41 lines
688 B
Java

package mods.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;
}
public boolean equals(int posX, int posY, int posZ)
{
if (this.x == posX && this.y == posY && this.z == posZ)
return true;
else
return false;
}
public String toString()
{
return "X: "+x+", Y: "+y+", Z: "+z;
}
}