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, curFilenameCHUNK_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, getReadergetChunk, toChunkprotected File zipFile
protected ZipFile zip
protected String folder
public ZippedMcRegionChunkStore(File zipFile, String folder) throws IOException, ZipException
zipFile - folder - IOExceptionZipExceptionpublic ZippedMcRegionChunkStore(File zipFile) throws IOException, ZipException
zipFile - IOExceptionZipExceptionprotected InputStream getInputStream(String name, String worldname) throws IOException, DataException
getInputStream in class McRegionChunkStorename - IOExceptionDataExceptionpublic void close()
throws IOException
close in class McRegionChunkStoreIOExceptionpublic boolean isValid()
ChunkStoreisValid in class ChunkStoreCopyright © 2010-2014. All Rights Reserved.