public abstract class LegacyChunkStore extends ChunkStore
CHUNK_SHIFTS| Constructor and Description |
|---|
LegacyChunkStore() |
| Modifier and Type | Method and Description |
|---|---|
CompoundTag |
getChunkTag(Vector2D position,
World world)
Get the tag for a chunk.
|
static String |
getFilename(Vector2D position)
Get the filename of a chunk, using the system's default path
separator.
|
static String |
getFilename(Vector2D position,
String separator)
Get the filename of a chunk.
|
protected abstract InputStream |
getInputStream(String f1,
String f2,
String name)
Get the input stream for a chunk file.
|
close, getChunk, isValid, toChunkpublic static String getFilename(Vector2D position, String separator)
position - chunk positionseparator - folder separator characterpublic static String getFilename(Vector2D position)
position - chunk positionpublic CompoundTag getChunkTag(Vector2D position, World world) throws DataException, IOException
ChunkStoregetChunkTag in class ChunkStoreposition - the position of the chunkDataException - thrown on data errorIOException - thrown on I/O errorprotected abstract InputStream getInputStream(String f1, String f2, String name) throws IOException, DataException
f1 - the first part of the pathf2 - the second part of the pathname - the nameIOExceptionDataExceptionCopyright © 2010-2014. All Rights Reserved.