package net.minecraft.server; import java.io.File; import javax.annotation.Nullable; import org.torch.server.TorchIOThread; public class ServerNBTManager extends WorldNBTStorage { public ServerNBTManager(File file, String s, boolean flag, DataConverterManager dataconvertermanager) { super(file, s, flag, dataconvertermanager); } @Override public IChunkLoader createChunkLoader(WorldProvider worldprovider) { File file = this.getDirectory(); File file1; if (worldprovider instanceof WorldProviderHell) { file1 = new File(file, "DIM-1"); file1.mkdirs(); return new ChunkRegionLoader(file1, this.a); } else if (worldprovider instanceof WorldProviderTheEnd) { file1 = new File(file, "DIM1"); file1.mkdirs(); return new ChunkRegionLoader(file1, this.a); } else { return new ChunkRegionLoader(file, this.a); } } @Override public void saveWorldData(WorldData worlddata, @Nullable NBTTagCompound nbttagcompound) { worlddata.e(19133); super.saveWorldData(worlddata, nbttagcompound); } @Override public void a() { try { TorchIOThread.getInstance().waitForFinish(); } catch (InterruptedException interruptedexception) { interruptedexception.printStackTrace(); } RegionFileCache.a(); } }