public class FileMcRegionChunkStore extends McRegionChunkStore
cachedReader, curFilename
CHUNK_SHIFTS, CHUNK_SHIFTS_Y
Constructor and Description |
---|
FileMcRegionChunkStore(java.io.File path)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
protected java.io.InputStream |
getInputStream(java.lang.String name,
java.lang.String world)
Get the input stream for a chunk file.
|
boolean |
isValid()
Returns whether the chunk store is of this type.
|
close, getChunkTag, getFilename, getReader
getChunk, toChunk, toChunk3d
public FileMcRegionChunkStore(java.io.File path)
path
- a pathprotected java.io.InputStream getInputStream(java.lang.String name, java.lang.String world) throws java.io.IOException, DataException
McRegionChunkStore
getInputStream
in class McRegionChunkStore
name
- the name of the chunk fileworld
- the world namejava.io.IOException
- if there is an error getting the chunk dataDataException
public boolean isValid()
ChunkStore
isValid
in class ChunkStore