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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidClears the CancelReason returned byPathStrategy.getCancelReason()and attempts to resume pathfinding.protected voidsetCancelReason(CancelReason reason) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.citizensnpcs.api.ai.PathStrategygetCurrentDestination, getPath, getTargetAsLocation, stop, update
- 
Constructor Details- 
AbstractPathStrategy
 
- 
- 
Method Details- 
clearCancelReasonpublic void clearCancelReason()Description copied from interface:PathStrategyClears the CancelReason returned byPathStrategy.getCancelReason()and attempts to resume pathfinding.- Specified by:
- clearCancelReasonin interface- PathStrategy
 
- 
getCancelReason- Specified by:
- getCancelReasonin interface- PathStrategy
- Returns:
- The reason for the pathfinding to stop, or null if it is still continuing.
 
- 
getTargetType- Specified by:
- getTargetTypein interface- PathStrategy
- Returns:
- The TargetTypeof this strategy
 
- 
setCancelReason
 
-