Enum PathState
- All Implemented Interfaces:
Serializable
,Comparable<PathState>
,java.lang.constant.Constable
The state of a finished pathfinding process.
Finished does not mean successful, it just means that the pathfinding process has ended.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe pathfinding process was abortedThe Path wasn't found, either it reached its max search depth or it couldn't find more positionsSignifies that the pathfinder fell back during the pathfinding attemptThe Path was successfully foundPathing failed to start, typically due to an invalid start or end position.Signifies that the pathfinder reached its length limitSignifies that the pathfinder reached its iteration limit -
Method Summary
-
Enum Constant Details
-
ABORTED
The pathfinding process was aborted -
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
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 nameNullPointerException
- if the argument is null
-