protected World(WorldGen<? extends World> worldGen, int w, int h, boolean genMappings) {
		this.worldGen = worldGen;
		data = new BinBuffer(w*h*2*2);
		width = w;
		height = h;
		
		for (int y = 0; y < h; y++) for (int x = 0; x < w; x++) data.writeUShort(0);
		for (int y = 0; y < h; y++) for (int x = 0; x < w; x++) data.writeUShort(0);
		
		if (genMappings) generateMappings();
	}