public void setFolder(final File folder, final boolean clearCache) {
    chunks.clear();
    if(clearCache) {
      MapReader.clearCache();
    }
    final File[] files = folder.listFiles(new FileFilter() {

      @Override
      public boolean accept(final File f) {
        return f.isFile()
            && f.getName().endsWith(RegionFile.ANVIL_EXTENSION);
      }

    });
    for(final File f : files) {
      final MapReader r = MapReader.getForFile(f);
      final List<ChunkInFilePosition> chunkList = r.getChunks();
      for(final ChunkInFilePosition p : chunkList) {
        final Chunk chunk = new Chunk(r.read(p), f, p);
        unloadChunk(chunk);
      }
    }
  }