Uses of Class
de.metaphoriker.pathetic.api.wrapper.PathPosition
Packages that use PathPosition
Package
Description
-
Uses of PathPosition in de.metaphoriker.pathetic.api.pathing
Methods in de.metaphoriker.pathetic.api.pathing with parameters of type PathPositionModifier and TypeMethodDescriptionPathfinder.findPath
(PathPosition start, PathPosition target, List<PathFilter> filters) Tries to find a Path between the twoPathPosition
's provided with the given filters.Pathfinder.findPath
(PathPosition start, PathPosition target, List<PathFilter> sharedFilters, List<PathFilterStage> filterStages) Tries to find a Path between the twoPathPosition
's provided with the given filter-containers. -
Uses of PathPosition in de.metaphoriker.pathetic.api.pathing.filter
Methods in de.metaphoriker.pathetic.api.pathing.filter that return PathPositionModifier and TypeMethodDescriptionPathValidationContext.getAbsoluteStart()
The absolute start position of the pathfinding process.PathValidationContext.getAbsoluteTarget()
The absolute target position of the pathfinding process.PathValidationContext.getParent()
The parent position of the current position.PathValidationContext.getPosition()
The current position being evaluated in the pathfinding process.Constructors in de.metaphoriker.pathetic.api.pathing.filter with parameters of type PathPositionModifierConstructorDescriptionPathValidationContext
(PathPosition position, PathPosition parent, PathPosition absoluteStart, PathPosition absoluteTarget, NavigationPointProvider navigationPointProvider) -
Uses of PathPosition in de.metaphoriker.pathetic.api.pathing.result
Methods in de.metaphoriker.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.metaphoriker.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.metaphoriker.pathetic.api.provider
Methods in de.metaphoriker.pathetic.api.provider with parameters of type PathPositionModifier and TypeMethodDescriptionNavigationPointProvider.getNavigationPoint
(PathPosition position) Gets the navigation point at the given position. -
Uses of PathPosition in de.metaphoriker.pathetic.api.wrapper
Methods in de.metaphoriker.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 same environment, but 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 same environment, but 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 environment and coordinates as this one, but with the x-coordinate set to the given value.PathPosition.setY
(double y) Creates a newPathPosition
with the same environment and coordinates as this one, but with the y-coordinate set to the given value.PathPosition.setZ
(double z) Creates a newPathPosition
with the same environment and 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.metaphoriker.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.int
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.