Enum Constant Summary
Enum Constants
The pathfinding process was aborted
The Path wasn't found, either it reached its max search depth or it couldn't find more
positions
Signifies that the pathfinder fell back during the pathfinding attempt
The Path was successfully found
Pathing failed to start, typically due to an invalid start or end position.
Signifies that the pathfinder reached its length limit
Signifies that the pathfinder reached its iteration limit
Method Summary
All Methods Static Methods Concrete Methods
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
ABORTED
The pathfinding process was aborted
INITIALLY_FAILED
public static final PathState INITIALLY_FAILED
Pathing failed to start, typically due to an invalid start or end position.
FOUND
The Path was successfully found
FAILED
The Path wasn't found, either it reached its max search depth or it couldn't find more
positions
FALLBACK
Signifies that the pathfinder fell back during the pathfinding attempt
LENGTH_LIMITED
Signifies that the pathfinder reached its length limit
MAX_ITERATIONS_REACHED
public static final PathState MAX_ITERATIONS_REACHED
Signifies that the pathfinder reached its iteration limit
Method Details
values
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null