mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-04-06 04:21:58 +01:00
This commit updates the .gitignore file to ignore the proper files with the new tree system, and modifies the mapmerge files to the latest -tg- files, as those are already compatible and written for the new tree system.
43 lines
837 B
Java
43 lines
837 B
Java
class Location
|
|
{
|
|
int x;
|
|
int y;
|
|
int z;
|
|
|
|
public Location()
|
|
{
|
|
}
|
|
|
|
public Location(int paramInt1, int paramInt2, int paramInt3)
|
|
{
|
|
this.x = paramInt1;
|
|
this.y = paramInt2;
|
|
this.z = paramInt3;
|
|
}
|
|
|
|
public void set(int paramInt1, int paramInt2, int paramInt3)
|
|
{
|
|
this.x = paramInt1;
|
|
this.y = paramInt2;
|
|
this.z = paramInt3;
|
|
}
|
|
|
|
public boolean equals(Object paramObject)
|
|
{
|
|
if (!(paramObject instanceof Location)) return false;
|
|
Location localLocation = (Location)paramObject;
|
|
if ((this.x != localLocation.x) || (this.y != localLocation.y) || (this.z != localLocation.z)) return false;
|
|
return true;
|
|
}
|
|
|
|
public int hashCode()
|
|
{
|
|
return (this.z * 256 + this.y) * 256 + this.x;
|
|
}
|
|
|
|
public String toString()
|
|
{
|
|
return "(" + this.x + "," + this.y + "," + this.z + ")";
|
|
}
|
|
}
|