Update the API usage

This commit is contained in:
Brady 2018-09-23 19:23:57 -05:00
parent eeea07ed2b
commit e3b777d2ef
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -45,11 +45,12 @@ Quick start example: `thisway 1000` or `goal 70` to set the goal, `path` to actu
# API example
```
Baritone.settings().allowSprint.value = true;
Baritone.settings().pathTimeoutMS.value = 2000L;
BaritoneAPI.getSettings().allowSprint.value = true;
BaritoneAPI.getSettings().pathTimeoutMS.value = 2000L;
PathingBehavior.INSTANCE.setGoal(new GoalXZ(10000, 20000));
PathingBehavior.INSTANCE.path();
// Note that at this moment in time the Goal implementations are not exposed in the API
BaritoneAPI.getPathingBehavior().setGoal(new GoalXZ(10000, 20000));
BaritoneAPI.getPathingBehavior().path();
```
# FAQ