Package baritone.api.pathing.goals
Class GoalComposite
java.lang.Object
baritone.api.pathing.goals.GoalComposite
- All Implemented Interfaces:
Goal
A composite of many goals, any one of which satisfies the composite.
For example, a GoalComposite of block goals for every oak log in loaded chunks
would result in it pathing to the easiest oak log to get to
- Author:
- avecowa
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGoal[]goals()inthashCode()doubleReturns the heuristic at the goal.doubleheuristic(int x, int y, int z) Estimate the number of ticks it will take to get to the goalbooleanisInGoal(int x, int y, int z) Returns whether or not the specified position meets the requirement for this goal based.toString()
-
Constructor Details
-
GoalComposite
-
-
Method Details
-
isInGoal
Description copied from interface:GoalReturns whether or not the specified position meets the requirement for this goal based. -
heuristic
Description copied from interface:GoalEstimate the number of ticks it will take to get to the goal -
heuristic
Description copied from interface:GoalReturns the heuristic at the goal. i.e.heuristic() == heuristic(x,y,z)whenisInGoal(x,y,z) == trueThis is needed byPathingBehavior#estimatedTicksToGoalbecause some Goals actually do not have a heuristic of 0 when that condition is met -
equals
-
hashCode
-
toString
-
goals
-