mirror of https://github.com/cabaletta/baritone
Update the API usage
This commit is contained in:
parent
eeea07ed2b
commit
e3b777d2ef
|
@ -45,11 +45,12 @@ Quick start example: `thisway 1000` or `goal 70` to set the goal, `path` to actu
|
||||||
# API example
|
# API example
|
||||||
|
|
||||||
```
|
```
|
||||||
Baritone.settings().allowSprint.value = true;
|
BaritoneAPI.getSettings().allowSprint.value = true;
|
||||||
Baritone.settings().pathTimeoutMS.value = 2000L;
|
BaritoneAPI.getSettings().pathTimeoutMS.value = 2000L;
|
||||||
|
|
||||||
PathingBehavior.INSTANCE.setGoal(new GoalXZ(10000, 20000));
|
// Note that at this moment in time the Goal implementations are not exposed in the API
|
||||||
PathingBehavior.INSTANCE.path();
|
BaritoneAPI.getPathingBehavior().setGoal(new GoalXZ(10000, 20000));
|
||||||
|
BaritoneAPI.getPathingBehavior().path();
|
||||||
```
|
```
|
||||||
|
|
||||||
# FAQ
|
# FAQ
|
||||||
|
|
Loading…
Reference in New Issue