Class FileLegacyChunkStore

All Implemented Interfaces:
Closeable, AutoCloseable

public class FileLegacyChunkStore extends LegacyChunkStore
Represents the chunk store used by Minecraft Alpha.
  • Constructor Details

    • FileLegacyChunkStore

      public FileLegacyChunkStore(File path)
      Create an instance. The passed path is the folder to read the chunk files from.
      Parameters:
      path - path to a folder
  • Method Details

    • getInputStream

      protected InputStream getInputStream(String f1, String f2, String name) throws DataException
      Get the input stream for a chunk file.
      Specified by:
      getInputStream in class LegacyChunkStore
      Parameters:
      f1 - the first part of the pathname
      f2 - the second part of the pathname
      name - the name of the file
      Returns:
      an input stream
      Throws:
      DataException - if there is an error getting data for this chunk
    • isValid

      public boolean isValid()
      Description copied from class: ChunkStore
      Returns whether the chunk store is of this type.
      Specified by:
      isValid in class ChunkStore
      Returns:
      true if valid