Class MCNavigationStrategy

java.lang.Object
net.citizensnpcs.api.ai.AbstractPathStrategy
net.citizensnpcs.npc.ai.MCNavigationStrategy
All Implemented Interfaces:
PathStrategy

public class MCNavigationStrategy extends AbstractPathStrategy
  • Method Details

    • getCurrentDestination

      public Location getCurrentDestination()
      Returns:
      Gets the current movement destination
    • getPath

      public Iterable<Vector> getPath()
      Returns:
      A copy of the current path, if any
    • getTargetAsLocation

      public Location getTargetAsLocation()
      Returns:
      Gets the target destination location
    • getTargetType

      public TargetType getTargetType()
      Specified by:
      getTargetType in interface PathStrategy
      Overrides:
      getTargetType in class AbstractPathStrategy
      Returns:
      The TargetType of this strategy
    • stop

      public void stop()
      Description copied from interface: PathStrategy
      Forcibly stops pathfinding. Note that this method does not necessarily set the cancel reason.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • update

      public boolean update()
      Description copied from interface: PathStrategy
      Updates and runs the pathfinding strategy on its current NPC and destination.
      Returns:
      Whether pathfinding has completed