YouHaveTrouble 912426ce9c s
2021-05-03 02:26:32 +02:00
2021-05-03 01:29:26 +02:00
2021-05-03 01:29:26 +02:00
s
2021-05-03 02:26:32 +02:00

PathfinderPaths

PathfinderPath is an API that allows you to use minecraft pathfinder to get a list of locations from the starting point up until the goal.

Usage

This will initialize the path from location1 to location2 with pathfinder limit of 120 steps.

Path path = new Path(location1, location2, 120);

This snippet demonstrates how to calculate path between the locations. Only result of SUCCESS will update the path list.

PathCalculationResult result = path.recalculatePath();

if (result.equals(PathCalculationResult.SUCCESS)) {
    List<Location> locations = path.getPath();
}
S
Description
No description provided
Readme 30 KiB
Maybe works? Latest
2021-05-02 23:29:26 +00:00
Languages
Java 100%