private synchronized void closeCacheFilesInternal() { for (RegionFile regionFile : cachedRegionFiles.values()) { try { if (regionFile != null) regionFile.c(); } catch (Exception e) { e.printStackTrace(); } } cachedRegionFiles.clear(); }
public DataOutputStream getOutputStream(File folder, int x, int z) { RegionFile regionFile = getRegionFile(folder, x, z); return regionFile.b(x & 0x1F, z & 0x1F); }