Refactor and simplify RandomTeleportEngine API and logic

This commit is contained in:
William278 committed 2022-11-23 11:56:58 +00:00
1 parent c8a0f00290
commit 6b55327e52
6 files changed
+109 -178

No files matched your search

@@ -155,7 +155,7 @@ public interface HuskHomes {
RandomTeleportEngine getRandomTeleportEngine();
/**
* Set the {@link RandomTeleportEngine} to use and initialize it, calling {@link RandomTeleportEngine#initialize()}
* Sets the {@link RandomTeleportEngine} to be used for processing random teleports
*
* @param randomTeleportEngine the {@link RandomTeleportEngine} to use
*/
@@ -291,7 +291,7 @@ public interface HuskHomes {
* @return a {@link CompletableFuture} that will complete with an optional of the safe ground position, if it is
* possible to find one
*/
CompletableFuture<Optional<Location>> getSafeGroundLocation(@NotNull Location location);
CompletableFuture<Optional<Location>> resolveSafeGroundLocation(@NotNull Location location);
/**
* Returns the {@link Server} the plugin is on