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 with parameters of type PathPositionModifier and TypeMethodDescriptiondefault CompletionStage<PathfinderResult>
Pathfinder.findPath
(PathPosition start, PathPosition target) Tries to find a Path between the twoPathPosition
s.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. -
Uses of PathPosition in de.bsommerfeld.pathetic.api.pathing.processing.context
Methods in de.bsommerfeld.pathetic.api.pathing.processing.context that return PathPositionModifier and TypeMethodDescriptionNodeEvaluationContext.getCurrentPathPosition()
Returns the PathPosition currently being evaluated.NodeEvaluationContext.getPreviousPathPosition()
Returns the PathPosition from which thecurrent PathPosition
is being reached.default PathPosition
NodeEvaluationContext.getStartPathPosition()
Convenience method to access the start PathPosition of the overall search.SearchContext.getStartPathPosition()
Returns the starting PathPosition of the path search.default PathPosition
NodeEvaluationContext.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 pathMethod parameters in de.bsommerfeld.pathetic.api.pathing.result with type arguments of type PathPositionModifier and TypeMethodDescriptionPath.mutatePositions
(ParameterizedSupplier<PathPosition> mutator) Mutates each of the positions in the path with the given consumer -
Uses of PathPosition in de.bsommerfeld.pathetic.api.provider
Methods in de.bsommerfeld.pathetic.api.provider with parameters of type PathPositionModifier and TypeMethodDescriptiondefault NavigationPoint
NavigationPointProvider.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 newPathPosition
by adding the given values to the coordinates of this position.PathPosition.add
(PathVector vector) Creates a newPathPosition
by adding the components of the given vector to the coordinates of this position.PathPosition.clone()
PathPosition.floor()
Creates a newPathPosition
with the coordinates floored to the nearest integer values.PathPosition.interpolate
(PathPosition other, double progress) Interpolates between this position and another position based on a given progress value.PathPosition.mid()
Creates a newPathPosition
with 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.PathPosition.setX
(double x) Creates a newPathPosition
with the same coordinates as this one, but with the x-coordinate set to the given value.PathPosition.setY
(double y) Creates a newPathPosition
with the same coordinates as this one, but with the y-coordinate set to the given value.PathPosition.setZ
(double z) Creates a newPathPosition
with 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 newPathPosition
by subtracting the given values from the coordinates of this position.PathPosition.subtract
(PathVector vector) Creates a newPathPosition
by 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 TypeMethodDescriptiondouble
PathPosition.distance
(PathPosition otherPosition) Calculates the Euclidean distance between this position and another position.double
PathPosition.distanceSquared
(PathPosition otherPosition) Calculates the squared distance between this position and another position.PathPosition.interpolate
(PathPosition other, double progress) Interpolates between this position and another position based on a given progress value.boolean
PathPosition.isInSameBlock
(PathPosition otherPosition) Checks if this position and another position are within the same block in the environment.double
PathPosition.manhattanDistance
(PathPosition otherPosition) Calculates the Manhattan distance between this position and another position.PathPosition.midPoint
(PathPosition end) Calculates the midpoint between this position and another position.double
PathPosition.octileDistance
(PathPosition otherPosition) Calculates the Octile distance between this position and another position.