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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the CancelReason returned byPathStrategy.getCancelReason()and attempts to resume pathfinding.protected voidsetCancelReason(CancelReason reason) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:PathStrategyClears the CancelReason returned byPathStrategy.getCancelReason()and attempts to resume pathfinding.- Specified by:
clearCancelReasonin interfacePathStrategy
-
getCancelReason
- Specified by:
getCancelReasonin interfacePathStrategy- Returns:
- The reason for the pathfinding to stop, or null if it is still continuing.
-
getTargetType
- Specified by:
getTargetTypein interfacePathStrategy- Returns:
- The
TargetTypeof this strategy
-
setCancelReason
-