Interface WaypointProvider

All Superinterfaces:
Persistable
All Known Subinterfaces:
WaypointProvider.EnumerableWaypointProvider
All Known Implementing Classes:
GuidedWaypointProvider, LinearWaypointProvider, WanderWaypointProvider

public interface WaypointProvider extends Persistable
  • Method Details

    • createEditor

      WaypointEditor createEditor(CommandSender sender, CommandContext args)
      Creates an WaypointEditor with the given CommandSender.
      Parameters:
      sender - The player to link the editor with
      args -
      Returns:
      The editor
    • isPaused

      boolean isPaused()
      Returns whether this provider has paused execution of waypoints.
      Returns:
      Whether the provider is paused.
    • onRemove

      void onRemove()
      Called when the provider is removed from the NPC.
    • onSpawn

      void onSpawn(NPC npc)
      Called when the NPC attached to this provider is spawned.
      Parameters:
      npc - The attached NPC
    • setPaused

      void setPaused(boolean paused)
      Pauses waypoint execution.
      Parameters:
      paused - Whether to pause waypoint execution.