Class Snapshot
java.lang.Object
com.sk89q.worldedit.world.snapshot.Snapshot
- All Implemented Interfaces:
Comparable<Snapshot>
A snapshot is a backup.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSnapshot
(SnapshotRepository repo, String snapshot) Construct a snapshot restoration operation. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
containsWorld
(String worldname) Check the zip/tar file it contains the given world.boolean
Get a chunk store.getDate()
Get the date associated with this snapshot.getFile()
Get the file for the snapshot.getName()
Get the snapshot's name.int
hashCode()
void
setDate
(ZonedDateTime date) Set the date of the snapshot.
-
Field Details
-
file
-
name
-
date
-
-
Constructor Details
-
Snapshot
Construct a snapshot restoration operation.- Parameters:
repo
- a repositorysnapshot
- a snapshot name
-
-
Method Details
-
getChunkStore
Get a chunk store.- Returns:
- a chunk store
- Throws:
IOException
- if there is an error loading the chunk storeDataException
- if there is an error loading the chunk store
-
containsWorld
Check the zip/tar file it contains the given world.- Returns:
- true if the zip/tar file contains the given world
-
getName
Get the snapshot's name.- Returns:
- the name of the snapshot
-
getFile
Get the file for the snapshot.- Returns:
- path to the snapshot
-
getDate
Get the date associated with this snapshot.- Returns:
- date for the snapshot
-
setDate
Set the date of the snapshot.- Parameters:
date
- the date of the snapshot
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Snapshot>
-
equals
-
hashCode
public int hashCode()
-