public ResourceClump(int cx, int cy, int radius, int type) {
			this.cx = cx;
			this.cy = cy;
			this.radius = radius;
			this.num_voxels = 0;
			this.type = type;

			int ci = getI(cx);
			int cj = getJ(cy);
			int iradius = getI(radius);

			for (int i = ci - iradius; i < ci + iradius; i++) {
				for (int j = cj - iradius; j < cj + iradius; j++) {
					if (i < 0 || j < 0 || i >= voxels.length
							|| j >= voxels[0].length)
						continue;
					double di = i - ci;
					double dj = j - cj;
					double idist = Math.sqrt(di * di + dj * dj);

					if (idist < iradius) {
						voxels[i][j] = type;
						resource_density[i][j] = STARTING_DENSITY;
						locked[i][j] = false;
						num_voxels++;
					}
				}
			}

			addForce();
		}