Uses of Class
de.bsommerfeld.pathetic.api.wrapper.PathPosition
Packages that use PathPosition
Package
Description
-
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing
Methods in de.bsommerfeld.pathetic.api.pathing that return PathPositionModifier and TypeMethodDescriptionPathfindingProgress.currentPosition()Returns the current step (position) of the pathfinding process.PathfindingProgress.startPosition()Returns the start position of the overall pathfinding process.PathfindingProgress.targetPosition()Returns the destination (target) position of the overall pathfinding process.Methods in de.bsommerfeld.pathetic.api.pathing with parameters of type PathPositionModifier and TypeMethodDescriptiondefault PathfindingSearchPathfinder.findPath(PathPosition start, PathPosition target) Tries to find a Path between the twoPathPositions.Pathfinder.findPath(PathPosition start, PathPosition target, EnvironmentContext context) Tries to find a path between the specified start and target positions within the provided environment context.default Iterable<PathVector>INeighborStrategy.getOffsets(PathPosition currentPosition) Gets the collection of vectors based on the current position.Constructors in de.bsommerfeld.pathetic.api.pathing with parameters of type PathPositionModifierConstructorDescriptionPathfindingProgress(PathPosition startPosition, PathPosition currentPosition, PathPosition targetPosition) -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.heuristic
Methods in de.bsommerfeld.pathetic.api.pathing.heuristic that return PathPositionModifier and TypeMethodDescriptionHeuristicContext.position()The current to-evaluate position.HeuristicContext.startPosition()The overall start position of the pathfinding.HeuristicContext.targetPosition()The overall target position of the pathfinding.Methods in de.bsommerfeld.pathetic.api.pathing.heuristic with parameters of type PathPositionModifier and TypeMethodDescriptiondoubleIHeuristicStrategy.calculateTransitionCost(PathPosition from, PathPosition to) Calculates the actual transition cost between two adjacent positions.doubleLinearHeuristicStrategy.calculateTransitionCost(PathPosition from, PathPosition to) doubleSquaredHeuristicStrategy.calculateTransitionCost(PathPosition from, PathPosition to) Constructors in de.bsommerfeld.pathetic.api.pathing.heuristic with parameters of type PathPositionModifierConstructorDescriptionHeuristicContext(PathPosition position, PathPosition startPosition, PathPosition targetPosition, HeuristicWeights heuristicWeights) -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.hook
Methods in de.bsommerfeld.pathetic.api.pathing.hook that return PathPositionModifier and TypeMethodDescriptionPathfindingContext.currentPosition()The current position of the pathfinding step.Constructors in de.bsommerfeld.pathetic.api.pathing.hook with parameters of type PathPosition -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.processing.context
Methods in de.bsommerfeld.pathetic.api.pathing.processing.context that return PathPositionModifier and TypeMethodDescriptionEvaluationContext.getCurrentPathPosition()Returns the PathPosition currently being evaluated.EvaluationContext.getPreviousPathPosition()Returns the PathPosition from which thecurrent PathPositionis being reached.default PathPositionEvaluationContext.getStartPathPosition()Convenience method to access the start PathPosition of the overall search.SearchContext.getStartPathPosition()Returns the starting PathPosition of the path search.default PathPositionEvaluationContext.getTargetPathPosition()Convenience method to access the target PathPosition of the overall search.SearchContext.getTargetPathPosition()Returns the target (or goal) PathPosition of the path search. -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.result
Methods in de.bsommerfeld.pathetic.api.pathing.result that return PathPositionModifier and TypeMethodDescriptionPath.getEnd()Returns the target position of the pathPath.getStart()Returns the start position of the pathMethods in de.bsommerfeld.pathetic.api.pathing.result that return types with arguments of type PathPositionModifier and TypeMethodDescriptionPath.collect()Returns a new Collection of the Path Positions of the path. -
Uses of PathPosition in de.bsommerfeld.pathetic.api.provider
Methods in de.bsommerfeld.pathetic.api.provider with parameters of type PathPositionModifier and TypeMethodDescriptiondefault NavigationPointNavigationPointProvider.getNavigationPoint(PathPosition position) Gets the navigation point at the given position.NavigationPointProvider.getNavigationPoint(PathPosition position, EnvironmentContext environmentContext) Retrieves the navigation point at the specified position within the provided environment context. -
Uses of PathPosition in de.bsommerfeld.pathetic.api.wrapper
Methods in de.bsommerfeld.pathetic.api.wrapper that return PathPositionModifier and TypeMethodDescriptionPathPosition.add(double x, double y, double z) Creates a newPathPositionby adding the given values to the coordinates of this position.PathPosition.add(PathVector vector) Creates a newPathPositionby adding the components of the given vector to the coordinates of this position.PathPosition.clone()PathPosition.floor()Creates a newPathPositionwith the coordinates floored to the nearest integer values.PathPosition.mid()Creates a newPathPositionwith the coordinates set to the center of the block they are in.PathPosition.midPoint(PathPosition end) Calculates the midpoint between this position and another position.static PathPositionPathPosition.of(double x, double y, double z) Creates a newPathPositioninstance with the specified coordinates.PathPosition.setX(double x) Creates a newPathPositionwith the same coordinates as this one, but with the x-coordinate set to the given value.PathPosition.setY(double y) Creates a newPathPositionwith the same coordinates as this one, but with the y-coordinate set to the given value.PathPosition.setZ(double z) Creates a newPathPositionwith the same coordinates as this one, but with the z-coordinate set to the given value.PathPosition.subtract(double x, double y, double z) Creates a newPathPositionby subtracting the given values from the coordinates of this position.PathPosition.subtract(PathVector vector) Creates a newPathPositionby subtracting the components of the given vector from the coordinates of this position.Methods in de.bsommerfeld.pathetic.api.wrapper with parameters of type PathPositionModifier and TypeMethodDescriptiondoublePathPosition.distance(PathPosition otherPosition) Calculates the Euclidean distance between this position and another position.doublePathPosition.distanceSquared(PathPosition otherPosition) Calculates the squared distance between this position and another position.doublePathPosition.manhattanDistance(PathPosition otherPosition) Deprecated.marked for removalPathPosition.midPoint(PathPosition end) Calculates the midpoint between this position and another position.doublePathPosition.octileDistance(PathPosition otherPosition) Deprecated.marked for removal