java.lang.Object
net.citizensnpcs.api.astar.pathfinder.Path
All Implemented Interfaces:
Plan

public class Path extends Object implements Plan
  • Constructor Details

  • Method Details

    • getBlocks

      public List<Block> getBlocks(World world)
    • getCurrentVector

      public Vector getCurrentVector()
    • getPath

      public Iterable<Vector> getPath()
    • isComplete

      public boolean isComplete()
      Specified by:
      isComplete in interface Plan
    • run

      public void run(NPC npc)
    • toString

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

      public void update(Agent agent)
      Description copied from interface: Plan
      Updates the plan. Should be run ideally every tick.
      Specified by:
      update in interface Plan