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
Modifier and TypeInterfaceDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptioncreateEditor
(CommandSender sender, CommandContext args) Creates anWaypointEditor
with the givenCommandSender
.boolean
isPaused()
Returns whether this provider has paused execution of waypoints.void
onRemove()
Called when the provider is removed from the NPC.void
Called when theNPC
attached to this provider is spawned.void
setPaused
(boolean paused) Pauses waypoint execution.Methods inherited from interface net.citizensnpcs.api.persistence.Persistable
load, save
-
Method Details
-
createEditor
Creates anWaypointEditor
with 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 theNPC
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.
-