public int getConfig(int uid, int x, int y, int z) {
		Ground tile = groundArray[z][x][y];
		if (tile == null)
			return -1;
		if (tile.wallObject != null && tile.wallObject.uid == uid)
			return tile.wallObject.objConf & 0xff;
		if (tile.wallDecoration != null && tile.wallDecoration.uid == uid)
			return tile.wallDecoration.objConf & 0xff;
		if (tile.groundDecoration != null && tile.groundDecoration.uid == uid)
			return tile.groundDecoration.objConf & 0xff;
		for (int e = 0; e < tile.entityCount; e++)
			if (tile.interactiveObjects[e].uid == uid)
				return tile.interactiveObjects[e].objConf & 0xff;

		return -1;
	}