Class FolderSnapshot
java.lang.Object
com.sk89q.worldedit.world.snapshot.experimental.fs.FolderSnapshot
- All Implemented Interfaces:
Snapshot
,Closeable
,AutoCloseable
Snapshot based on a world folder. Extracts chunks from the region folder.
Note that the Path can belong to another filesystem. This allows easy integration with zips due to Java's built-in zipfs support.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this snapshot.getChunkTag
(BlockVector3 position) Get the chunk information for the given position.getInfo()
-
Constructor Details
-
FolderSnapshot
-
-
Method Details
-
getFolder
-
getInfo
-
getChunkTag
Description copied from interface:Snapshot
Get the chunk information for the given position. Implementations may ignore the Y-chunk if its chunks are only stored in 2D.- Specified by:
getChunkTag
in interfaceSnapshot
- Parameters:
position
- the position of the chunk- Returns:
- the tag containing chunk data
- Throws:
DataException
IOException
-
close
Description copied from interface:Snapshot
Close this snapshot. This releases the IO handles used to load chunk information.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSnapshot
- Throws:
IOException
-