Uses of Class
de.metaphoriker.pathetic.api.wrapper.PathPosition
Package
Description
-
Uses of PathPosition in de.metaphoriker.pathetic.api.pathing
Modifier 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
Modifier and TypeMethodDescriptionPathValidationContext.getAbsoluteStart()
PathValidationContext.getAbsoluteTarget()
PathValidationContext.getParent()
PathValidationContext.getPosition()
ModifierConstructorDescriptionPathValidationContext
(PathPosition position, PathPosition parent, PathPosition absoluteStart, PathPosition absoluteTarget, NavigationPointProvider navigationPointProvider) -
Uses of PathPosition in de.metaphoriker.pathetic.api.pathing.result
Modifier and TypeMethodDescriptionPath.getEnd()
Returns the target position of the pathPath.getStart()
Returns the start position of the pathModifier 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
Modifier and TypeMethodDescriptionNavigationPointProvider.getNavigationPoint
(PathPosition position) Gets the navigation point at the given position. -
Uses of PathPosition in de.metaphoriker.pathetic.api.wrapper
Modifier and TypeMethodDescriptionPathPosition.add
(double x, double y, double z) Adds x,y,z values to the current valuesPathPosition.add
(PathVector vector) Adds the values of a vector to the positionPathPosition.clone()
PathPosition.floor()
Rounds the x,y,z values to the floor of the valuesPathPosition.interpolate
(PathPosition other, double progress) Interpolates between two positions based on the given progress.PathPosition.mid()
Sets the coordinates to the middle of the blockPathPosition.midPoint
(PathPosition end) Calculates the midpoint between the current position and the given end position.PathPosition.setX
(double x) Sets the X coordinate of thePathPosition
PathPosition.setY
(double y) Sets the Y coordinate of thePathPosition
PathPosition.setZ
(double z) Sets the Z coordinate of thePathPosition
PathPosition.subtract
(double x, double y, double z) Subtracts x,y,z values from the current valuesPathPosition.subtract
(PathVector vector) Subtracts the values of a vector from the positionModifier and TypeMethodDescriptiondouble
PathPosition.distance
(PathPosition otherPosition) Gets the distance between the current and another positiondouble
PathPosition.distanceSquared
(PathPosition otherPosition) Gets the distance squared between the current and another positionPathPosition.interpolate
(PathPosition other, double progress) Interpolates between two positions based on the given progress.boolean
PathPosition.isInSameBlock
(PathPosition otherPosition) Checks to see if the two positions are in the same blockint
PathPosition.manhattanDistance
(PathPosition otherPosition) Gets the manhattan distance between the current and another positionPathPosition.midPoint
(PathPosition end) Calculates the midpoint between the current position and the given end position.double
PathPosition.octileDistance
(PathPosition otherPosition) Gets the octile distance between the current and another position