Package net.citizensnpcs.trait.waypoint
Interface WaypointProvider
- All Superinterfaces:
- Persistable
- All Known Subinterfaces:
- WaypointProvider.EnumerableWaypointProvider
- All Known Implementing Classes:
- GuidedWaypointProvider,- LinearWaypointProvider,- WanderWaypointProvider
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interface
- 
Method SummaryModifier and TypeMethodDescriptioncreateEditor(CommandSender sender, CommandContext args) Creates anWaypointEditorwith the givenCommandSender.booleanisPaused()Returns whether this provider has paused execution of waypoints.voidonRemove()Called when the provider is removed from the NPC.voidCalled when theNPCattached to this provider is spawned.voidsetPaused(boolean paused) Pauses waypoint execution.Methods inherited from interface net.citizensnpcs.api.persistence.Persistableload, save
- 
Method Details- 
createEditorCreates anWaypointEditorwith the givenCommandSender.- Parameters:
- sender- The player to link the editor with
- args-
- Returns:
- The editor
 
- 
isPausedboolean isPaused()Returns whether this provider has paused execution of waypoints.- Returns:
- Whether the provider is paused.
 
- 
onRemovevoid onRemove()Called when the provider is removed from the NPC.
- 
onSpawnCalled when theNPCattached to this provider is spawned.- Parameters:
- npc- The attached NPC
 
- 
setPausedvoid setPaused(boolean paused) Pauses waypoint execution.- Parameters:
- paused- Whether to pause waypoint execution.
 
 
-