Class JumpingExaminer.JumpCallback

java.lang.Object
net.citizensnpcs.api.astar.pathfinder.JumpingExaminer.JumpCallback
All Implemented Interfaces:
PathPoint.PathCallback
Enclosing class:
JumpingExaminer

public class JumpingExaminer.JumpCallback extends Object implements PathPoint.PathCallback
  • Constructor Details

    • JumpCallback

      public JumpCallback()
  • Method Details

    • onReached

      public void onReached(NPC npc, Block point)
      Description copied from interface: PathPoint.PathCallback
      Run once the specificed point is reached.
      Specified by:
      onReached in interface PathPoint.PathCallback
      Parameters:
      npc - The NPC
      point - The point that was reached
    • run

      public void run(NPC npc, Block point, List<Block> path, int index)
      Description copied from interface: PathPoint.PathCallback
      Run every tick when moving towards a specific block.
      Specified by:
      run in interface PathPoint.PathCallback
      Parameters:
      npc - The NPC
      point - The point
      path - The future path destinations as blocks
      index - The current path index