public int method304(int z, int x, int y, int uid) {
		GroundTile groundTile = groundTiles[z][x][y];
		if (groundTile == null) {
			return -1;
		}
		if (groundTile.wallObject != null && groundTile.wallObject.uid == uid) {
			return groundTile.wallObject.objectConfig & 0xff;
		}
		if (groundTile.wallDecoration != null && groundTile.wallDecoration.uid == uid) {
			return groundTile.wallDecoration.objectConfig & 0xff;
		}
		if (groundTile.groundDecoration != null && groundTile.groundDecoration.uid == uid) {
			return groundTile.groundDecoration.objectConfig & 0xff;
		}
		for (int i1 = 0; i1 < groundTile.anInt1317; i1++) {
			if (groundTile.interactiveObjects[i1].uid == uid) {
				return groundTile.interactiveObjects[i1].objectConfig & 0xff;
			}
		}
		return -1;
	}