Package baritone.api.pathing.goals
Class GoalInverted
java.lang.Object
baritone.api.pathing.goals.GoalInverted
- All Implemented Interfaces:
Goal
Invert any 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.
- Author:
- LoganDark
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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()
-
Field Details
-
origin
-
-
Constructor Details
-
GoalInverted
-
-
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
-