public interface WaypointProvider
extends net.citizensnpcs.api.persistence.Persistable
Modifier and Type | Interface and Description |
---|---|
static interface |
WaypointProvider.EnumerableWaypointProvider |
Modifier and Type | Method and Description |
---|---|
WaypointEditor |
createEditor(CommandSender sender,
net.citizensnpcs.api.command.CommandContext args)
Creates an
WaypointEditor with the given CommandSender . |
boolean |
isPaused()
Returns whether this provider has paused execution of waypoints.
|
void |
onRemove()
Called when the provider is removed from the NPC.
|
void |
onSpawn(net.citizensnpcs.api.npc.NPC npc)
Called when the
NPC attached to this provider is spawned. |
void |
setPaused(boolean paused)
Pauses waypoint execution.
|
WaypointEditor createEditor(CommandSender sender, net.citizensnpcs.api.command.CommandContext args)
WaypointEditor
with the given CommandSender
.sender
- The player to link the editor withargs
- boolean isPaused()
void onRemove()
void onSpawn(net.citizensnpcs.api.npc.NPC npc)
NPC
attached to this provider is spawned.npc
- The attached NPCvoid setPaused(boolean paused)
paused
- Whether to pause waypoint execution.Copyright © 2019. All rights reserved.