Class ZippedMcRegionChunkStore

All Implemented Interfaces:
Closeable, AutoCloseable

public class ZippedMcRegionChunkStore extends McRegionChunkStore
Represents the chunk store used by Minecraft alpha but zipped.
  • Field Details

    • zipFile

      protected File zipFile
    • zip

      protected ZipFile zip
    • folder

      protected String folder
  • Constructor Details

    • ZippedMcRegionChunkStore

      public ZippedMcRegionChunkStore(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
      Throws:
      IOException - if there is an error opening the zip
      ZipException - if there is an error opening the zip
    • ZippedMcRegionChunkStore

      public ZippedMcRegionChunkStore(File zipFile) throws IOException, ZipException
      Create an instance. The sub-folder 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