Interface ProxyService


public interface ProxyService
Proxies small framework specific actions.
  • Method Details

    • toLocation

      @Nullable <L> L toLocation(@Nullable @Nullable Position position)
      Converts the given position to a location.
      Type Parameters:
      L - Location Type.
      Parameters:
      position - position.
      Returns:
      location.
    • toVector

      @Nullable <V> V toVector(@Nullable @Nullable Position position)
      Converts the given position to a vector.
      Type Parameters:
      V - Vector Type.
      Parameters:
      position - position.
      Returns:
      vector.
    • toPosition

      @Nullable <L> @Nullable Position toPosition(@Nullable L location)
      Converts the given location to a position.
      Type Parameters:
      L - Location Type.
      Parameters:
      location - Location.
      Returns:
      position.
    • runAsyncTask

      @Deprecated void runAsyncTask(@NotNull @NotNull Runnable runnable)
      Deprecated.
      Deprecated. Use getAsyncExecutor().execute instead.
    • runSyncTask

      @Deprecated void runSyncTask(@NotNull @NotNull Runnable runnable)
      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.