convenience methods
This commit is contained in:
parent
fa7a0b3c45
commit
89ad673ae3
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
package baritone.pathing.calc;
|
package baritone.pathing.calc;
|
||||||
|
|
||||||
import baritone.behavior.PathingBehavior;
|
|
||||||
import baritone.api.pathing.goals.Goal;
|
import baritone.api.pathing.goals.Goal;
|
||||||
|
import baritone.behavior.PathingBehavior;
|
||||||
import baritone.pathing.path.IPath;
|
import baritone.pathing.path.IPath;
|
||||||
import baritone.utils.pathing.BetterBlockPos;
|
import baritone.utils.pathing.BetterBlockPos;
|
||||||
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
|
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
|
||||||
@ -163,6 +163,18 @@ public abstract class AbstractNodeCostSearch implements IPathFinder {
|
|||||||
currentlyRunning = null;
|
currentlyRunning = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PathNode mostRecentNodeConsidered() {
|
||||||
|
return mostRecentConsidered;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PathNode bestNodeSoFar() {
|
||||||
|
return bestSoFar[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
public PathNode startNode() {
|
||||||
|
return startNode;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<IPath> pathToMostRecentNodeConsidered() {
|
public Optional<IPath> pathToMostRecentNodeConsidered() {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user