public Chunk(World w, int x, int y, int z) {
		data = new boolean[chunkW * chunkH * chunkD];
		chunkX = x;
		chunkY = y;
		chunkZ = z;
		for (int xx = 0; xx < chunkW; xx++) {
			for (int yy = 0; yy < chunkH; yy++) {
				for (int zz = 0; zz < chunkD; zz++) {
					if(noiseGen(((float)xx + (float)chunkX), ((float)yy + (float)chunkY), ((float)zz + (float)chunkZ)) < 0) {
						data[xx + (yy * chunkW) + (zz * chunkW * chunkH)] = true;
					}
				}
			}
		}
		terrainChange = true;
		world = w;
		model = new BufferObject();
	}