public interface Snapshot
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this snapshot.
|
default Chunk |
getChunk(BlockVector3 position)
Get the chunk information for the given position.
|
CompoundTag |
getChunkTag(BlockVector3 position)
Get the chunk information for the given position.
|
SnapshotInfo |
getInfo() |
SnapshotInfo getInfo()
CompoundTag getChunkTag(BlockVector3 position) throws DataException, java.io.IOException
position
- the position of the chunkDataException
java.io.IOException
default Chunk getChunk(BlockVector3 position) throws DataException, java.io.IOException
DataException
java.io.IOException
getChunkTag(BlockVector3)
,
ChunkStoreHelper.getChunk(CompoundTag)
void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException