Package net.citizensnpcs.trait.waypoint
Interface WaypointProvider
- All Superinterfaces:
Persistable
- All Known Subinterfaces:
WaypointProvider.EnumerableWaypointProvider
- All Known Implementing Classes:
GuidedWaypointProvider,LinearWaypointProvider,WanderWaypointProvider
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier 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.Persistable
load, save
-
Method Details
-
createEditor
Creates anWaypointEditorwith the givenCommandSender.- Parameters:
sender- The player to link the editor withargs-- 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
Called when theNPCattached 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.
-