Class Pathfinding

java.lang.Object
com.minecolonies.core.entity.pathfinding.Pathfinding

public final class Pathfinding extends Object
Static class the handles all the Pathfinding.
  • Method Details

    • getExecutor

      public static ThreadPoolExecutor getExecutor()
      Creates a new thread pool for pathfinding jobs
      Returns:
      the threadpool executor.
    • shutdown

      public static void shutdown()
      Stops all running threads in this thread pool
    • enqueue

      public static void enqueue(@NotNull @NotNull AbstractPathJob job)
      Add a job to the queue for processing.
      Parameters:
      job - PathJob