public abstract class LegacyChunkStore extends ChunkStore
CHUNK_SHIFTS, CHUNK_SHIFTS_Y
Constructor and Description |
---|
LegacyChunkStore() |
Modifier and Type | Method and Description |
---|---|
CompoundTag |
getChunkTag(BlockVector2 position,
World world)
Get the tag for a chunk.
|
static java.lang.String |
getFilename(BlockVector2 position)
Get the filename of a chunk, using the system's default path
separator.
|
static java.lang.String |
getFilename(BlockVector2 position,
java.lang.String separator)
Get the filename of a chunk.
|
protected abstract java.io.InputStream |
getInputStream(java.lang.String f1,
java.lang.String f2,
java.lang.String name)
Get the input stream for a chunk file.
|
public static java.lang.String getFilename(BlockVector2 position, java.lang.String separator)
position
- chunk positionseparator
- folder separator characterpublic static java.lang.String getFilename(BlockVector2 position)
position
- chunk positionpublic CompoundTag getChunkTag(BlockVector2 position, World world) throws DataException, java.io.IOException
ChunkStore
getChunkTag
in class ChunkStore
position
- the position of the chunkDataException
- thrown on data errorjava.io.IOException
- thrown on I/O errorprotected abstract java.io.InputStream getInputStream(java.lang.String f1, java.lang.String f2, java.lang.String name) throws java.io.IOException, DataException
f1
- the first part of the pathf2
- the second part of the pathname
- the namejava.io.IOException
- if there is an error getting the chunk dataDataException