public abstract class McRegionChunkStore extends ChunkStore
| Modifier and Type | Field and Description |
|---|---|
protected McRegionReader |
cachedReader |
protected String |
curFilename |
CHUNK_SHIFTS| Constructor and Description |
|---|
McRegionChunkStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close resources.
|
CompoundTag |
getChunkTag(Vector2D pos,
LocalWorld world)
Get the tag for a chunk.
|
static String |
getFilename(Vector2D pos)
Get the filename of a region file.
|
protected abstract InputStream |
getInputStream(String name,
String worldname)
Get the input stream for a chunk file.
|
protected McRegionReader |
getReader(Vector2D pos,
String worldname) |
getChunk, isValid, toChunkprotected String curFilename
protected McRegionReader cachedReader
public static String getFilename(Vector2D pos)
pos - protected McRegionReader getReader(Vector2D pos, String worldname) throws DataException, IOException
DataExceptionIOExceptionpublic CompoundTag getChunkTag(Vector2D pos, LocalWorld world) throws DataException, IOException
ChunkStoregetChunkTag in class ChunkStoreDataExceptionIOExceptionprotected abstract InputStream getInputStream(String name, String worldname) throws IOException, DataException
name - IOExceptionDataExceptionpublic void close()
throws IOException
close in class ChunkStoreIOExceptionCopyright © 2010-2014. All Rights Reserved.