Class Pathfinding
java.lang.Object
com.minecolonies.core.entity.pathfinding.Pathfinding
Static class the handles all the Pathfinding.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMinecolonies specific thread factory. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenqueue(@NotNull AbstractPathJob job) Add a job to the queue for processing.static ThreadPoolExecutorCreates a new thread pool for pathfinding jobsstatic voidshutdown()Stops all running threads in this thread pool
-
Method Details
-
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
Add a job to the queue for processing.- Parameters:
job- PathJob
-