From 9aefcebddf876e72705b422641093b2ef8c5503f Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 14 Aug 2018 15:32:16 -0700 Subject: [PATCH] api --- src/main/java/baritone/bot/behavior/impl/PathingBehavior.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java index 6e848884..096daecf 100644 --- a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java +++ b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java @@ -135,10 +135,12 @@ public class PathingBehavior extends Behavior { this.goal = goal; } - public PathExecutor getExecutor() { + public PathExecutor getCurrent() { return current; } + public PathExecutor getNext() {return next;} + public Optional getPath() { return Optional.ofNullable(current).map(PathExecutor::getPath); }