diff --git a/src/api/java/baritone/api/process/PathingCommand.java b/src/api/java/baritone/api/process/PathingCommand.java index 082928b3..0d0d7db3 100644 --- a/src/api/java/baritone/api/process/PathingCommand.java +++ b/src/api/java/baritone/api/process/PathingCommand.java @@ -20,7 +20,9 @@ package baritone.api.process; import baritone.api.pathing.goals.Goal; public class PathingCommand { + public final Goal goal; + public final PathingCommandType commandType; public PathingCommand(Goal goal, PathingCommandType commandType) { diff --git a/src/api/java/baritone/api/process/PathingCommandType.java b/src/api/java/baritone/api/process/PathingCommandType.java index 98517ba5..f2336d26 100644 --- a/src/api/java/baritone/api/process/PathingCommandType.java +++ b/src/api/java/baritone/api/process/PathingCommandType.java @@ -17,11 +17,14 @@ package baritone.api.process; +import baritone.api.Settings; + public enum PathingCommandType { + /** * Set the goal and path. *

- * If you use this alongside a null goal, it will continue along its current path and current goal. + * If you use this alongside a {@code null} goal, it will continue along its current path and current goal. */ SET_GOAL_AND_PATH, @@ -31,21 +34,22 @@ public enum PathingCommandType { REQUEST_PAUSE, /** - * Set the goal (regardless of null), and request a cancel of the current path (when safe) + * Set the goal (regardless of {@code null}), and request a cancel of the current path (when safe) */ CANCEL_AND_SET_GOAL, /** * Set the goal and path. *

- * If cancelOnGoalInvalidation is true, revalidate the current goal, and cancel if it's no longer valid, or if the new goal is null. + * If {@link Settings#cancelOnGoalInvalidation} is {@code true}, revalidate the + * current goal, and cancel if it's no longer valid, or if the new goal is {@code null}. */ REVALIDATE_GOAL_AND_PATH, /** * Set the goal and path. *

- * Revalidate the current goal, and cancel if it's no longer valid, or if the new goal is null. + * Revalidate the current goal, and cancel if it's no longer valid, or if the new goal is {@code null}. */ - FORCE_REVALIDATE_GOAL_AND_PATH, + FORCE_REVALIDATE_GOAL_AND_PATH }