Class PathfindingContext
java.lang.Object
de.bsommerfeld.pathetic.api.pathing.hook.PathfindingContext
Context for the current step of the pathfinding process.
-
Constructor Summary
ConstructorsConstructorDescriptionPathfindingContext(PathPosition position, Depth depth, PathPosition target, EnvironmentContext environmentContext) -
Method Summary
-
Constructor Details
-
PathfindingContext
public PathfindingContext(PathPosition position, Depth depth, PathPosition target, EnvironmentContext environmentContext)
-
-
Method Details
-
currentPosition
The current position of the pathfinding step. -
getDepth
The current depth of the pathfinding step. -
target
The target position of the search. Invariant for the entire search: the same reference is supplied to every callback, so onlycurrentPosition()andgetDepth()change between steps. -
environmentContext
The environment context supplied to the search, ornullif none was provided. Liketarget(), this is invariant for the entire search. -
equals
-
hashCode
public int hashCode() -
toString
-