Expose canReach to mob pathfinding API (#10636)

This commit is contained in:
SoSeDiK
2024-05-01 13:00:11 +03:00
parent dde797dbca
commit 58e7ac939f
2 changed files with 13 additions and 0 deletions

View File

@@ -132,6 +132,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+
+ @Override
+ public boolean canReachFinalPoint() {
+ return path.canReach();
+ }
+
+ @Override
+ public List<Location> getPoints() {
+ List<Location> points = new ArrayList<>();
+ for (Node point : path.nodes) {