From 89ad673ae375716ad59315a64bc15367798cd958 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 23 Sep 2018 18:44:54 -0700 Subject: [PATCH] convenience methods --- .../pathing/calc/AbstractNodeCostSearch.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/pathing/calc/AbstractNodeCostSearch.java b/src/main/java/baritone/pathing/calc/AbstractNodeCostSearch.java index 587a3b7d..f579f236 100644 --- a/src/main/java/baritone/pathing/calc/AbstractNodeCostSearch.java +++ b/src/main/java/baritone/pathing/calc/AbstractNodeCostSearch.java @@ -17,8 +17,8 @@ package baritone.pathing.calc; -import baritone.behavior.PathingBehavior; import baritone.api.pathing.goals.Goal; +import baritone.behavior.PathingBehavior; import baritone.pathing.path.IPath; import baritone.utils.pathing.BetterBlockPos; import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; @@ -163,6 +163,18 @@ public abstract class AbstractNodeCostSearch implements IPathFinder { currentlyRunning = null; } + public PathNode mostRecentNodeConsidered() { + return mostRecentConsidered; + } + + public PathNode bestNodeSoFar() { + return bestSoFar[0]; + } + + public PathNode startNode() { + return startNode; + } + @Override public Optional pathToMostRecentNodeConsidered() { try {