public class GoalInverted extends java.lang.Object implements Goal
In the old chat control system, #invert just tried to pick a GoalRunAway that effectively inverted the
current goal. This goal just reverses the heuristic to act as a TRUE invert. Inverting a Y level? Baritone tries to
get away from that Y level. Inverting a GoalBlock? Baritone will try to make distance whether it's in the X, Y or Z
directions. And of course, you can always invert a GoalXZ.
| Constructor and Description |
|---|
GoalInverted(Goal origin) |
| Modifier and Type | Method and Description |
|---|---|
double |
heuristic()
Returns the heuristic at the goal.
|
double |
heuristic(int x,
int y,
int z)
Estimate the number of ticks it will take to get to the goal
|
boolean |
isInGoal(int x,
int y,
int z)
Returns whether or not the specified position
meets the requirement for this goal based.
|
java.lang.String |
toString() |
public GoalInverted(Goal origin)
public boolean isInGoal(int x, int y, int z)
Goalpublic double heuristic(int x, int y, int z)
Goalpublic double heuristic()
Goalheuristic() == heuristic(x,y,z)
when isInGoal(x,y,z) == true
This is needed by PathingBehavior#estimatedTicksToGoal because
some Goals actually do not have a heuristic of 0 when that condition is metpublic java.lang.String toString()
toString in class java.lang.Object