mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-18 22:43:54 +00:00
Removed trailing whitespaces.
This commit is contained in:
@ -46,7 +46,7 @@ public class Snapshot implements Comparable<Snapshot> {
|
||||
|
||||
/**
|
||||
* Construct a snapshot restoration operation.
|
||||
*
|
||||
*
|
||||
* @param repo
|
||||
* @param snapshot
|
||||
*/
|
||||
@ -57,10 +57,10 @@ public class Snapshot implements Comparable<Snapshot> {
|
||||
|
||||
/**
|
||||
* Get a chunk store.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws DataException
|
||||
* @throws DataException
|
||||
*/
|
||||
public ChunkStore getChunkStore() throws IOException, DataException {
|
||||
ChunkStore chunkStore = _getChunkStore();
|
||||
@ -73,10 +73,10 @@ public class Snapshot implements Comparable<Snapshot> {
|
||||
|
||||
/**
|
||||
* Get a chunk store.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws DataException
|
||||
* @throws DataException
|
||||
*/
|
||||
public ChunkStore _getChunkStore() throws IOException, DataException {
|
||||
if (file.getName().toLowerCase().endsWith(".zip")) {
|
||||
@ -124,7 +124,7 @@ public class Snapshot implements Comparable<Snapshot> {
|
||||
|
||||
/**
|
||||
* Check the zip/tar file it contains the given world.
|
||||
*
|
||||
*
|
||||
* @return true if the zip/tar file contains the given world
|
||||
*/
|
||||
public boolean containsWorld(String worldname) {
|
||||
@ -158,7 +158,7 @@ public class Snapshot implements Comparable<Snapshot> {
|
||||
|
||||
/**
|
||||
* Get the snapshot's name.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getName() {
|
||||
@ -167,7 +167,7 @@ public class Snapshot implements Comparable<Snapshot> {
|
||||
|
||||
/**
|
||||
* Get the file for the snapshot.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public File getFile() {
|
||||
@ -176,7 +176,7 @@ public class Snapshot implements Comparable<Snapshot> {
|
||||
|
||||
/**
|
||||
* Get the date associated with this snapshot.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Calendar getDate() {
|
||||
@ -185,7 +185,7 @@ public class Snapshot implements Comparable<Snapshot> {
|
||||
|
||||
/**
|
||||
* Set the date of the snapshot.
|
||||
*
|
||||
*
|
||||
* @param date
|
||||
*/
|
||||
public void setDate(Calendar date) {
|
||||
|
@ -67,7 +67,7 @@ public class SnapshotRepository {
|
||||
* Get a list of snapshots in a directory. The newest snapshot is
|
||||
* near the top of the array.
|
||||
*
|
||||
* @param newestFirst
|
||||
* @param newestFirst
|
||||
* @return
|
||||
*/
|
||||
public List<Snapshot> getSnapshots(boolean newestFirst, String worldname) throws MissingWorldException {
|
||||
@ -108,7 +108,7 @@ public class SnapshotRepository {
|
||||
|
||||
/**
|
||||
* Get the first snapshot after a date.
|
||||
*
|
||||
*
|
||||
* @param date
|
||||
* @return
|
||||
*/
|
||||
@ -130,7 +130,7 @@ public class SnapshotRepository {
|
||||
|
||||
/**
|
||||
* Get the first snapshot before a date.
|
||||
*
|
||||
*
|
||||
* @param date
|
||||
* @return
|
||||
*/
|
||||
@ -151,7 +151,7 @@ public class SnapshotRepository {
|
||||
|
||||
/**
|
||||
* Attempt to detect a snapshot's date and assign it.
|
||||
*
|
||||
*
|
||||
* @param snapshot
|
||||
*/
|
||||
protected void detectDate(Snapshot snapshot) {
|
||||
@ -211,7 +211,7 @@ public class SnapshotRepository {
|
||||
|
||||
/**
|
||||
* Get a snapshot.
|
||||
*
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
* @throws InvalidSnapshotException
|
||||
|
@ -57,13 +57,13 @@ public class SnapshotRestore {
|
||||
|
||||
/**
|
||||
* Construct the snapshot restore operation.
|
||||
*
|
||||
* @param chunkStore
|
||||
*
|
||||
* @param chunkStore
|
||||
* @param region
|
||||
*/
|
||||
public SnapshotRestore(ChunkStore chunkStore, Region region) {
|
||||
this.chunkStore = chunkStore;
|
||||
|
||||
|
||||
if (region instanceof CuboidRegion) {
|
||||
findNeededCuboidChunks(region);
|
||||
} else {
|
||||
@ -121,7 +121,7 @@ public class SnapshotRestore {
|
||||
|
||||
/**
|
||||
* Get the number of chunks that are needed.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public int getChunksAffected() {
|
||||
@ -132,7 +132,7 @@ public class SnapshotRestore {
|
||||
* Restores to world.
|
||||
*
|
||||
* @param editSession
|
||||
* @throws MaxChangedBlocksException
|
||||
* @throws MaxChangedBlocksException
|
||||
*/
|
||||
public void restore(EditSession editSession)
|
||||
throws MaxChangedBlocksException {
|
||||
@ -193,7 +193,7 @@ public class SnapshotRestore {
|
||||
/**
|
||||
* Checks to see where the backup succeeded in any capacity. False will
|
||||
* be returned if no chunk could be successfully loaded.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public boolean hadTotalFailure() {
|
||||
|
Reference in New Issue
Block a user