Class TrueZipMcRegionChunkStore

All Implemented Interfaces:
Closeable, AutoCloseable

public class TrueZipMcRegionChunkStore extends McRegionChunkStore
Represents the chunk store used by Minecraft but zipped. Uses the replacement classes for java.util.zip.* from TrueZip.
  • Field Details

    • zipFile

      protected File zipFile
    • zip

      protected de.schlichtherle.util.zip.ZipFile zip
    • folder

      protected String folder
  • Constructor Details

    • TrueZipMcRegionChunkStore

      public TrueZipMcRegionChunkStore(File zipFile, String folder) throws IOException, ZipException
      Create an instance. The folder argument lets you choose a folder or path to look into in the ZIP for the files. Use a blank string for the folder to not look into a subdirectory.
      Parameters:
      zipFile - the ZIP file
      folder - the folder to look into
      Throws:
      IOException - if there is an error opening the zip
      ZipException - if there is an error opening the zip
    • TrueZipMcRegionChunkStore

      public TrueZipMcRegionChunkStore(File zipFile) throws IOException, ZipException
      Create an instance. The subfolder containing the chunk data will be detected.
      Parameters:
      zipFile - the ZIP file
      Throws:
      IOException - if there is an error opening the zip
      ZipException - if there is an error opening the zip
  • Method Details