Interface PathPoint.PathCallback

Enclosing interface:
PathPoint

public static interface PathPoint.PathCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onReached(NPC npc, Block point)
    Run once the specificed point is reached.
    void
    run(NPC npc, Block point, List<Block> path, int index)
    Run every tick when moving towards a specific block.
  • Method Details

    • onReached

      default void onReached(NPC npc, Block point)
      Run once the specificed point is reached.
      Parameters:
      npc - The NPC
      point - The point that was reached
    • run

      void run(NPC npc, Block point, List<Block> path, int index)
      Run every tick when moving towards a specific block.
      Parameters:
      npc - The NPC
      point - The point
      path - The future path destinations as blocks
      index - The current path index