public int method304(int i, int j, int k, int l)
	{
		Ground class30_sub3 = groundArray[i][j][k];
		if (class30_sub3 == null)
			return -1;
		if (class30_sub3.obj1 != null && class30_sub3.obj1.uid == l)
			return class30_sub3.obj1.aByte281 & 0xff;
		if (class30_sub3.obj2 != null && class30_sub3.obj2.uid == l)
			return class30_sub3.obj2.aByte506 & 0xff;
		if (class30_sub3.obj3 != null && class30_sub3.obj3.uid == l)
			return class30_sub3.obj3.aByte816 & 0xff;
		for (int i1 = 0; i1 < class30_sub3.anInt1317; i1++)
			if (class30_sub3.obj5Array[i1].uid == l)
				return class30_sub3.obj5Array[i1].aByte530 & 0xff;

		return -1;
	}