Uses of Class
de.metaphoriker.pathetic.api.wrapper.PathPosition
Package
Description
-
Uses of PathPosition in de.metaphoriker.pathetic.api.pathing
Modifier and TypeMethodDescription@NonNull CompletionStage<PathfinderResult>
Pathfinder.findPath
(@NonNull PathPosition start, @NonNull PathPosition target, List<@NonNull PathFilter> filters) Tries to find a Path between the twoPathPosition
's provided with the given filters.@NonNull CompletionStage<PathfinderResult>
Pathfinder.findPath
(@NonNull PathPosition start, @NonNull PathPosition target, List<PathFilter> sharedFilters, List<@NonNull 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.result
Modifier and TypeMethodDescription@NonNull PathPosition
Path.getEnd()
Returns the target position of the path@NonNull PathPosition
Path.getStart()
Returns the start position of the pathModifier and TypeMethodDescription@NonNull Path
Path.mutatePositions
(ParameterizedSupplier<PathPosition> mutator) Mutates each of the positions in the path with the given consumer -
Uses of PathPosition in de.metaphoriker.pathetic.api.snapshot
Modifier and TypeMethodDescriptionSnapshotManager.getBlock
(PathPosition position) Gets the block at the given positionSnapshotManager.getHighestBlockAt
(PathPosition position) Gets the highest block at the given position -
Uses of PathPosition in de.metaphoriker.pathetic.api.wrapper
Modifier and TypeMethodDescription@NonNull PathPosition
PathPosition.add
(double x, double y, double z) Adds x,y,z values to the current values@NonNull PathPosition
PathPosition.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) 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
@NonNull PathPosition
PathPosition.subtract
(double x, double y, double z) Subtracts x,y,z values from the current values@NonNull PathPosition
PathPosition.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) double
PathPosition.octileDistance
(PathPosition otherPosition) Gets the octile distance between the current and another position