Interface ProxyService
public interface ProxyService
Proxies small framework specific actions.
-
Method Summary
Modifier and TypeMethodDescriptionGets an execute to schedule tasks on the asynchronous bukkit threadPool.Gets the running minecraft version.Gets an execute to schedule tasks on the synchronous bukkit thread.voidrunAsyncTask(@NotNull Runnable runnable) Deprecated.voidrunSyncTask(@NotNull Runnable runnable) Deprecated.<L> LtoLocation(@Nullable Position position) Converts the given position to a location.<L> @Nullable PositiontoPosition(L location) Converts the given location to a position.<V> VConverts the given position to a vector.
-
Method Details
-
toLocation
Converts the given position to a location.- Type Parameters:
L- Location Type.- Parameters:
position- position.- Returns:
- location.
-
toVector
Converts the given position to a vector.- Type Parameters:
V- Vector Type.- Parameters:
position- position.- Returns:
- vector.
-
toPosition
Converts the given location to a position.- Type Parameters:
L- Location Type.- Parameters:
location- Location.- Returns:
- position.
-
runAsyncTask
Deprecated.Deprecated. Use getAsyncExecutor().execute instead. -
runSyncTask
Deprecated.Deprecated. Use getSyncExecutor().execute instead. -
getSyncExecutor
Executor getSyncExecutor()Gets an execute to schedule tasks on the synchronous bukkit thread.- Returns:
Executor.
-
getAsyncExecutor
Executor getAsyncExecutor()Gets an execute to schedule tasks on the asynchronous bukkit threadPool.- Returns:
Executor.
-
getServerVersion
Version getServerVersion()Gets the running minecraft version.- Returns:
- version.
-