mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Version 3.0 setup
This commit is contained in:
1 parent
e122816613
commit
58ffaa0641
23 files changed
+874
-2
No files matched your search
@@ -0,0 +1,46 @@
|
||||
package net.william278.huskhomes.teleport;
|
||||
|
||||
import net.william278.huskhomes.position.Position;
|
||||
import net.william278.huskhomes.position.World;
|
||||
|
||||
/**
|
||||
* Represents the result of a completed teleport
|
||||
*/
|
||||
public enum TeleportResult {
|
||||
|
||||
/**
|
||||
* Returns if the teleport completed successfully
|
||||
*/
|
||||
SUCCESS(true),
|
||||
|
||||
/**
|
||||
* Returns if the teleport failed because the {@link World} of the
|
||||
* target {@link Position} could not be found
|
||||
* <p>
|
||||
*/
|
||||
FAILED_INVALID_WORLD(false),
|
||||
|
||||
/**
|
||||
* Returns if the teleport failed because the server of the target
|
||||
* {@link Position} was invalid or not online
|
||||
* <p>
|
||||
*/
|
||||
FAILED_INVALID_SERVER(false),
|
||||
|
||||
/**
|
||||
* Returns if the teleport failed because the coordinates of the
|
||||
* target {@link Position} were outside the world border limits
|
||||
* <p>
|
||||
*/
|
||||
FAILED_INVALID_COORDINATES(false);
|
||||
|
||||
/**
|
||||
* Is {@code true} if the teleport was a success
|
||||
*/
|
||||
public final boolean successful;
|
||||
|
||||
TeleportResult(boolean successful) {
|
||||
this.successful = successful;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user