From e3b777d2ef2b029d05054bd84342d8b73b4a3328 Mon Sep 17 00:00:00 2001 From: Brady Date: Sun, 23 Sep 2018 19:23:57 -0500 Subject: [PATCH] Update the API usage --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0118d56d..9ad6a5df 100644 --- a/README.md +++ b/README.md @@ -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