mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Further refactoring, move away from using future thread pool
This commit is contained in:
1 parent
4c90e5498c
commit
39e0b25d46
56 files changed
+737
-1713
No files matched your search
@@ -98,14 +98,25 @@ public class HuskHomesAPI extends BaseHuskHomesAPI {
|
||||
* @param location the bukkit location to get the {@link Position} instance for
|
||||
* @param server the {@link Server} the position is on
|
||||
* @return the {@link Position} instance for the given bukkit {@link Location} on the given {@link Server}
|
||||
* @see Position#server
|
||||
* @since 3.0
|
||||
* @see Position#getServer() to get the server the position is on
|
||||
* @since 4.0
|
||||
*/
|
||||
@Nullable
|
||||
@NotNull
|
||||
public Position adaptPosition(@NotNull org.bukkit.Location location, @NotNull String server) {
|
||||
return new Position(Objects.requireNonNull(adaptLocation(location)), server);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a {@link Position} instance for the given bukkit {@link Location} on the server the plugin is running on.
|
||||
* @param location the bukkit location to get the {@link Position} instance for
|
||||
* @return the {@link Position} instance for the given bukkit {@link Location} on the server the plugin is running on
|
||||
* @since 4.0
|
||||
*/
|
||||
@NotNull
|
||||
public Position adaptPosition(@NotNull org.bukkit.Location location) {
|
||||
return new Position(Objects.requireNonNull(adaptLocation(location)), getServer());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the {@link Server}, containing the ID of the server the plugin is running on
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user