public class ZippedMcRegionChunkStore extends McRegionChunkStore
Modifier and Type | Field and Description |
---|---|
protected String |
folder
Folder inside the ZIP file to read from, if any.
|
protected ZipFile |
zip
Actual ZIP.
|
protected File |
zipFile
ZIP file.
|
cachedReader, curFilename
CHUNK_SHIFTS
Constructor and Description |
---|
ZippedMcRegionChunkStore(File zipFile)
Create an instance.
|
ZippedMcRegionChunkStore(File zipFile,
String folder)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close resources.
|
protected InputStream |
getInputStream(String name,
String worldname)
Get the input stream for a chunk file.
|
boolean |
isValid()
Returns whether the chunk store is of this type.
|
getChunkTag, getFilename, getReader
getChunk, toChunk
protected File zipFile
protected ZipFile zip
protected String folder
public ZippedMcRegionChunkStore(File zipFile, String folder) throws IOException, ZipException
zipFile
- folder
- IOException
ZipException
public ZippedMcRegionChunkStore(File zipFile) throws IOException, ZipException
zipFile
- IOException
ZipException
protected InputStream getInputStream(String name, String worldname) throws IOException, DataException
getInputStream
in class McRegionChunkStore
name
- IOException
DataException
public void close() throws IOException
close
in class McRegionChunkStore
IOException
public boolean isValid()
ChunkStore
isValid
in class ChunkStore
Copyright © 2010-2013. All Rights Reserved.