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