some glue
This commit is contained in:
parent
b1ced3fe84
commit
4fc74a85c1
@ -1,11 +1,33 @@
|
||||
package baritone.bot.behavior;
|
||||
|
||||
import baritone.bot.pathing.path.IPath;
|
||||
import baritone.bot.pathing.path.PathExecutor;
|
||||
|
||||
public class PathingBehavior extends Behavior{
|
||||
public static final PathingBehavior INSTANCE=new PathingBehavior();
|
||||
private PathingBehavior(){}
|
||||
public class PathingBehavior extends Behavior {
|
||||
public static final PathingBehavior INSTANCE = new PathingBehavior();
|
||||
|
||||
private PathingBehavior() {
|
||||
}
|
||||
|
||||
private PathExecutor current;
|
||||
|
||||
@Override
|
||||
public void onTick() {
|
||||
if (current == null) {
|
||||
return;
|
||||
}
|
||||
current.onTick();
|
||||
if (current.failed() || current.finished()) {
|
||||
current = null;
|
||||
}
|
||||
}
|
||||
|
||||
public PathExecutor getExecutor() {
|
||||
return current;
|
||||
}
|
||||
|
||||
public IPath getPath() {
|
||||
return current.getPath();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user