public class FolderSnapshot extends java.lang.Object implements Snapshot
Note that the Path can belong to another filesystem. This allows easy integration with zips due to Java's built-in zipfs support.
Constructor and Description |
---|
FolderSnapshot(SnapshotInfo info,
java.nio.file.Path folder,
Closer closeCallback) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this snapshot.
|
CompoundTag |
getChunkTag(BlockVector3 position)
Get the chunk information for the given position.
|
java.nio.file.Path |
getFolder() |
SnapshotInfo |
getInfo() |
public FolderSnapshot(SnapshotInfo info, java.nio.file.Path folder, @Nullable Closer closeCallback)
public java.nio.file.Path getFolder()
public SnapshotInfo getInfo()
public CompoundTag getChunkTag(BlockVector3 position) throws DataException, java.io.IOException
Snapshot
getChunkTag
in interface Snapshot
position
- the position of the chunkDataException
java.io.IOException
public void close() throws java.io.IOException
Snapshot