Package net.citizensnpcs.api.ai
Class AbstractPathStrategy
java.lang.Object
net.citizensnpcs.api.ai.AbstractPathStrategy
- All Implemented Interfaces:
PathStrategy
- Direct Known Subclasses:
AStarNavigationStrategy
,FlyingAStarNavigationStrategy
,MCNavigationStrategy
,StraightLineNavigationStrategy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the CancelReason returned byPathStrategy.getCancelReason()
and attempts to resume pathfinding.protected void
setCancelReason
(CancelReason reason) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.citizensnpcs.api.ai.PathStrategy
getCurrentDestination, getPath, getTargetAsLocation, stop, update
-
Constructor Details
-
AbstractPathStrategy
-
-
Method Details
-
clearCancelReason
public void clearCancelReason()Description copied from interface:PathStrategy
Clears the CancelReason returned byPathStrategy.getCancelReason()
and attempts to resume pathfinding.- Specified by:
clearCancelReason
in interfacePathStrategy
-
getCancelReason
- Specified by:
getCancelReason
in interfacePathStrategy
- Returns:
- The reason for the pathfinding to stop, or null if it is still continuing.
-
getTargetType
- Specified by:
getTargetType
in interfacePathStrategy
- Returns:
- The
TargetType
of this strategy
-
setCancelReason
-