Interface Snapshot
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
FolderSnapshot
Represents a world snapshot.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this snapshot.default Chunk
getChunk(BlockVector3 position)
Get the chunk information for the given position.getChunkTag(BlockVector3 position)
Get the chunk information for the given position.getInfo()
-
Method Details
-
getInfo
SnapshotInfo getInfo() -
getChunkTag
Get the chunk information for the given position. Implementations may ignore the Y-chunk if its chunks are only stored in 2D.- Parameters:
position
- the position of the chunk- Returns:
- the tag containing chunk data
- Throws:
DataException
IOException
-
getChunk
Get the chunk information for the given position.- Throws:
DataException
IOException
- See Also:
getChunkTag(BlockVector3)
,ChunkStoreHelper.getChunk(CompoundTag)
-
close
Close this snapshot. This releases the IO handles used to load chunk information.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-