Index
All Classes and Interfaces|All Packages
A
- abort() - Method in interface de.metaphoriker.pathetic.api.pathing.Pathfinder
-
Aborts the running pathfinding process.
- ABORTED - Enum constant in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
The pathfinding process was aborted
- accept(T) - Method in interface de.metaphoriker.pathetic.api.util.ParameterizedSupplier
- add(double, double, double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Adds x,y,z values to the current values
- add(PathVector) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Adds the values of a vector to the position
- add(PathVector) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Adds two vectors together
B
- BlockInformation - Class in de.metaphoriker.pathetic.api.wrapper
- BlockInformation() - Constructor for class de.metaphoriker.pathetic.api.wrapper.BlockInformation
C
- ChunkDataProvider - Interface in de.metaphoriker.pathetic.api.snapshot
-
This is for internal purpose only and is used to receive a ChunkSnapshot version-independent.
- cleanup() - Method in interface de.metaphoriker.pathetic.api.pathing.filter.PathFilter
-
Cleans up the resources used during the pathfinding process.
- cleanup() - Method in class de.metaphoriker.pathetic.api.pathing.filter.PathFilterStage
-
Cleans up all filters in the stage.
- clone() - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
- clone() - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
- computeDistance(PathVector, PathVector, PathVector) - Static method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Finds the distance between the line BC and the point A
- createAsyncConfiguration() - Static method in class de.metaphoriker.pathetic.api.pathing.configuration.PathfinderConfiguration
- createConfiguration() - Static method in class de.metaphoriker.pathetic.api.pathing.configuration.PathfinderConfiguration
D
- de.metaphoriker.pathetic.api.annotation - package de.metaphoriker.pathetic.api.annotation
- de.metaphoriker.pathetic.api.event - package de.metaphoriker.pathetic.api.event
-
This package contains classes related to the event system of pathetic.
- de.metaphoriker.pathetic.api.pathing - package de.metaphoriker.pathetic.api.pathing
- de.metaphoriker.pathetic.api.pathing.configuration - package de.metaphoriker.pathetic.api.pathing.configuration
- de.metaphoriker.pathetic.api.pathing.filter - package de.metaphoriker.pathetic.api.pathing.filter
- de.metaphoriker.pathetic.api.pathing.filter.filters - package de.metaphoriker.pathetic.api.pathing.filter.filters
- de.metaphoriker.pathetic.api.pathing.result - package de.metaphoriker.pathetic.api.pathing.result
- de.metaphoriker.pathetic.api.snapshot - package de.metaphoriker.pathetic.api.snapshot
- de.metaphoriker.pathetic.api.util - package de.metaphoriker.pathetic.api.util
- de.metaphoriker.pathetic.api.wrapper - package de.metaphoriker.pathetic.api.wrapper
- deepCopy(PathfinderConfiguration) - Static method in class de.metaphoriker.pathetic.api.pathing.configuration.PathfinderConfiguration
-
Creates a deep copy of the given
PathfinderConfiguration
. - DIRECT_PATH_WEIGHTS - Static variable in class de.metaphoriker.pathetic.api.pathing.configuration.HeuristicWeights
-
Provides a set of weights strongly prioritizing the shortest direct path, even if diagonally.
- distance(PathPosition) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Gets the distance between the current and another position
- distance(PathVector) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Gets the distance between this vector and another vector
- distanceSquared(PathPosition) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Gets the distance squared between the current and another position
- divide(double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Divide the vector by a scalar constant
- dot(PathVector) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Calculates the dot product of two vectors
E
- equals(Object) - Method in class de.metaphoriker.pathetic.api.wrapper.PathEnvironment
- equals(Object) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
- EventPublisher - Class in de.metaphoriker.pathetic.api.event
-
Utility class for publishing and managing events using the Google Guava EventBus.
- EventPublisher() - Constructor for class de.metaphoriker.pathetic.api.event.EventPublisher
- Experimental - Annotation Type in de.metaphoriker.pathetic.api.annotation
-
Marks an API as experimental.
F
- FAILED - Enum constant in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
The Path wasn't found, either it reached its max search depth or it couldn't find more positions
- FALLBACK - Enum constant in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
Signifies that the pathfinder fell back during the pathfinding attempt
- filter(PathValidationContext) - Method in class de.metaphoriker.pathetic.api.pathing.filter.filters.PassablePathFilter
- filter(PathValidationContext) - Method in class de.metaphoriker.pathetic.api.pathing.filter.filters.SolidGroundPathFilter
- filter(PathValidationContext) - Method in class de.metaphoriker.pathetic.api.pathing.filter.filters.WaterPathFilter
- filter(PathValidationContext) - Method in interface de.metaphoriker.pathetic.api.pathing.filter.PathFilter
-
Evaluates the given
PathValidationContext
to determine if the path is valid. - filter(PathValidationContext) - Method in class de.metaphoriker.pathetic.api.pathing.filter.PathFilterStage
-
Filters the given context with all filters in the stage.
- findPath(PathPosition, PathPosition, List<PathFilter>) - Method in interface de.metaphoriker.pathetic.api.pathing.Pathfinder
-
Tries to find a Path between the two
PathPosition
's provided with the given filters. - findPath(PathPosition, PathPosition, List<PathFilter>, List<PathFilterStage>) - Method in interface de.metaphoriker.pathetic.api.pathing.Pathfinder
-
Tries to find a Path between the two
PathPosition
's provided with the given filter-containers. - floor() - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Rounds the x,y,z values to the floor of the values
- FOUND - Enum constant in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
The Path was successfully found
G
- getBlock(PathPosition) - Method in interface de.metaphoriker.pathetic.api.snapshot.SnapshotManager
-
Gets the block at the given position
- getBlockState(ChunkSnapshot, int, int, int) - Method in interface de.metaphoriker.pathetic.api.snapshot.ChunkDataProvider
-
Get the block state from a chunk snapshot at the given coordinates
- getBlockX() - Method in class de.metaphoriker.pathetic.api.wrapper.PathBlock
-
Gets the X coordinate of the block
- getBlockX() - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Gets the X coordinate of the block the position is in
- getBlockY() - Method in class de.metaphoriker.pathetic.api.wrapper.PathBlock
-
Gets the Y coordinate of the block
- getBlockY() - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Gets the Y coordinate of the block the position is in
- getBlockZ() - Method in class de.metaphoriker.pathetic.api.wrapper.PathBlock
-
Gets the Z coordinate of the block
- getBlockZ() - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Gets the Z coordinate of the block the position is in
- getCrossProduct(PathVector) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Calculates the cross product of two vectors
- getEnd() - Method in interface de.metaphoriker.pathetic.api.pathing.result.Path
-
Returns the target position of the path
- getHighestBlockAt(PathPosition) - Method in interface de.metaphoriker.pathetic.api.snapshot.SnapshotManager
-
Gets the highest block at the given position
- getPath() - Method in interface de.metaphoriker.pathetic.api.pathing.result.PathfinderResult
-
Returns the found
Path
regardless if successful or not. - getPathState() - Method in interface de.metaphoriker.pathetic.api.pathing.result.PathfinderResult
-
Returns the state of the pathfinding.
- getSnapshot(World, int, int) - Method in interface de.metaphoriker.pathetic.api.snapshot.ChunkDataProvider
-
Returns a
ChunkSnapshot
of the chunk at the given coordinates. - getStart() - Method in interface de.metaphoriker.pathetic.api.pathing.result.Path
-
Returns the start position of the path
H
- hasFailed() - Method in interface de.metaphoriker.pathetic.api.pathing.result.PathfinderResult
-
Whether the pathfinder has failed to reach its target.
- hasFallenBack() - Method in interface de.metaphoriker.pathetic.api.pathing.result.PathfinderResult
-
Whether a pathfinder has resulted in a fallback.
- hasGround(PathBlock, SnapshotManager) - Method in class de.metaphoriker.pathetic.api.pathing.filter.filters.SolidGroundPathFilter
- hashCode() - Method in class de.metaphoriker.pathetic.api.wrapper.PathEnvironment
- hashCode() - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
- HeuristicWeights - Class in de.metaphoriker.pathetic.api.pathing.configuration
-
Represents a set of weights used to calculate a heuristic for the A* pathfinding algorithm.
- HeuristicWeights() - Constructor for class de.metaphoriker.pathetic.api.pathing.configuration.HeuristicWeights
I
- INITIALLY_FAILED - Enum constant in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
Pathing failed to start, typically due to an invalid start or end position.
- interpolate(double) - Method in interface de.metaphoriker.pathetic.api.pathing.result.Path
-
Interpolates the positions of this Path to a new Path with the given resolution.
- interpolate(double, double, double) - Static method in class de.metaphoriker.pathetic.api.util.NumberUtils
-
Interpolates between two values based on the given progress.
- interpolate(PathPosition, double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Interpolates between two positions based on the given progress.
- isAir() - Method in class de.metaphoriker.pathetic.api.wrapper.PathBlock
- isInSameBlock(PathPosition) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Checks to see if the two positions are in the same block
- isPassable() - Method in class de.metaphoriker.pathetic.api.wrapper.PathBlock
- isSolid() - Method in class de.metaphoriker.pathetic.api.wrapper.PathBlock
J
- join(Path) - Method in interface de.metaphoriker.pathetic.api.pathing.result.Path
-
Joins this Path with the given Path.
L
- length() - Method in interface de.metaphoriker.pathetic.api.pathing.result.Path
-
The length of the Path compiled from the number of positions
- length() - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Gets the length of the
PathVector
- LENGTH_LIMITED - Enum constant in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
Signifies that the pathfinder reached its length limit
M
- manhattanDistance(PathPosition) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Gets the manhattan distance between the current and another position
- MAX_ITERATIONS_REACHED - Enum constant in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
Signifies that the pathfinder reached its iteration limit
- mid() - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Sets the coordinates to the middle of the block
- midPoint(PathPosition) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
- multiply(double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Multiplies itself by a scalar constant
- mutatePositions(ParameterizedSupplier<PathPosition>) - Method in interface de.metaphoriker.pathetic.api.pathing.result.Path
-
Mutates each of the positions in the path with the given consumer
N
- NATURAL_PATH_WEIGHTS - Static variable in class de.metaphoriker.pathetic.api.pathing.configuration.HeuristicWeights
-
Provides a set of default heuristic weights that may be suitable for natural pathfinding.
- normalize() - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Normalises the
PathVector
(Divides the components by its magnitude) - NumberUtils - Class in de.metaphoriker.pathetic.api.util
-
Utility class for common number operations.
- NumberUtils() - Constructor for class de.metaphoriker.pathetic.api.util.NumberUtils
O
- octileDistance(PathPosition) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Gets the octile distance between the current and another position
P
- ParameterizedSupplier<T> - Interface in de.metaphoriker.pathetic.api.util
-
Represents a supplier that accepts a parameter.
- PassablePathFilter - Class in de.metaphoriker.pathetic.api.pathing.filter.filters
-
A PathFilter implementation that determines if a path is passable.
- PassablePathFilter() - Constructor for class de.metaphoriker.pathetic.api.pathing.filter.filters.PassablePathFilter
- Path - Interface in de.metaphoriker.pathetic.api.pathing.result
- PathBlock - Class in de.metaphoriker.pathetic.api.wrapper
-
A Class to represent a block in the world, except exempt of Bukkit
- PathBlock() - Constructor for class de.metaphoriker.pathetic.api.wrapper.PathBlock
- PathEnvironment - Class in de.metaphoriker.pathetic.api.wrapper
- PathEnvironment() - Constructor for class de.metaphoriker.pathetic.api.wrapper.PathEnvironment
- PathFilter - Interface in de.metaphoriker.pathetic.api.pathing.filter
-
A PathFilter is a functional interface that allows customization of the pathfinding process within the
Pathfinder
. - PathFilterStage - Class in de.metaphoriker.pathetic.api.pathing.filter
-
A stage for multiple PathFilters.
- PathFilterStage(PathFilter...) - Constructor for class de.metaphoriker.pathetic.api.pathing.filter.PathFilterStage
- Pathfinder - Interface in de.metaphoriker.pathetic.api.pathing
-
A Pathfinder is a class that can find a path between two positions while following a given set of rules.
- PathfinderConfiguration - Class in de.metaphoriker.pathetic.api.pathing.configuration
-
Defines a set of configurable parameters that govern the behavior of the A* pathfinding algorithm.
- PathfinderConfiguration() - Constructor for class de.metaphoriker.pathetic.api.pathing.configuration.PathfinderConfiguration
- PathfinderResult - Interface in de.metaphoriker.pathetic.api.pathing.result
- PathingEvent - Interface in de.metaphoriker.pathetic.api.event
-
Represents all pathing events
- PathingFinishedEvent - Class in de.metaphoriker.pathetic.api.event
-
An event called when a pathfinder finishes pathing.
- PathingFinishedEvent() - Constructor for class de.metaphoriker.pathetic.api.event.PathingFinishedEvent
- PathingStartFindEvent - Class in de.metaphoriker.pathetic.api.event
-
An event called when a Pathfinder starts pathing.
- PathingStartFindEvent() - Constructor for class de.metaphoriker.pathetic.api.event.PathingStartFindEvent
- PathPosition - Class in de.metaphoriker.pathetic.api.wrapper
- PathPosition() - Constructor for class de.metaphoriker.pathetic.api.wrapper.PathPosition
- PathState - Enum in de.metaphoriker.pathetic.api.pathing.result
- PathValidationContext - Class in de.metaphoriker.pathetic.api.pathing.filter
-
PathValidationContext is a data container used during the pathfinding process to provide relevant contextual information needed for evaluating path validity.
- PathValidationContext() - Constructor for class de.metaphoriker.pathetic.api.pathing.filter.PathValidationContext
- PathVector - Class in de.metaphoriker.pathetic.api.wrapper
- PathVector() - Constructor for class de.metaphoriker.pathetic.api.wrapper.PathVector
R
- raiseEvent(PathingEvent) - Static method in class de.metaphoriker.pathetic.api.event.EventPublisher
-
Raises an event by posting it to the EventBus.
- registerListener(Object) - Static method in class de.metaphoriker.pathetic.api.event.EventPublisher
-
Registers an event listener with the EventBus.
S
- setX(double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Sets the X coordinate of the
PathPosition
- setX(double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Sets the x component of the vector
- setY(double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Sets the Y coordinate of the
PathPosition
- setY(double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Sets the y component of the vector
- setZ(double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Sets the Z coordinate of the
PathPosition
- setZ(double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Sets the z component of the vector
- simplify(double) - Method in interface de.metaphoriker.pathetic.api.pathing.result.Path
-
Simplifies the path by removing intermediate positions based on the given epsilon value.
- SnapshotManager - Interface in de.metaphoriker.pathetic.api.snapshot
-
The SnapshotManager interface defines methods for retrieving block data snapshots at specific positions within a Minecraft world.
- SolidGroundPathFilter - Class in de.metaphoriker.pathetic.api.pathing.filter.filters
-
A PathFilter implementation that determines if a path is on solid ground.
- SolidGroundPathFilter() - Constructor for class de.metaphoriker.pathetic.api.pathing.filter.filters.SolidGroundPathFilter
- sqrt(double) - Static method in class de.metaphoriker.pathetic.api.util.NumberUtils
-
Computes the square root of the given value using an approximation method.
- square(double) - Static method in class de.metaphoriker.pathetic.api.util.NumberUtils
-
Squares the given value.
- subtract(double, double, double) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Subtracts x,y,z values from the current values
- subtract(PathVector) - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Subtracts the values of a vector from the position
- subtract(PathVector) - Method in class de.metaphoriker.pathetic.api.wrapper.PathVector
-
Subtracts one vector from another
- successful() - Method in interface de.metaphoriker.pathetic.api.pathing.result.PathfinderResult
-
Returns whether the pathfinding was successful.
T
- toVector() - Method in class de.metaphoriker.pathetic.api.wrapper.PathPosition
-
Converts the positions x,y,z to a
PathVector
- trim(int) - Method in interface de.metaphoriker.pathetic.api.pathing.result.Path
-
Trims this Path to the given length.
U
- unregisterListener(Object) - Static method in class de.metaphoriker.pathetic.api.event.EventPublisher
-
Unregisters an event listener from the EventBus.
V
- valueOf(String) - Static method in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum de.metaphoriker.pathetic.api.pathing.result.PathState
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WaterPathFilter - Class in de.metaphoriker.pathetic.api.pathing.filter.filters
-
A PathFilter implementation that determines if a path is through water.
- WaterPathFilter() - Constructor for class de.metaphoriker.pathetic.api.pathing.filter.filters.WaterPathFilter
All Classes and Interfaces|All Packages