Package net.citizensnpcs.trait.waypoint
Class WanderWaypointProvider
java.lang.Object
net.citizensnpcs.trait.waypoint.WanderWaypointProvider
- All Implemented Interfaces:
- Persistable,- WaypointProvider
A wandering waypoint provider that wanders between either a box centered at the current location or inside a region
 defined by a list of boxes.
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.citizensnpcs.trait.waypoint.WaypointProviderWaypointProvider.EnumerableWaypointProvider
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRegionCentre(Location centre) voidaddRegionCentres(Collection<Location> centre) createEditor(CommandSender sender, CommandContext args) Creates anWaypointEditorwith the givenCommandSender.intgetDelay()intintbooleanbooleanisPaused()Returns whether this provider has paused execution of waypoints.voidvoidonRemove()Called when the provider is removed from the NPC.voidCalled when theNPCattached to this provider is spawned.voidremoveRegionCentre(Location centre) voidremoveRegionCentres(Collection<Location> centre) voidvoidsetDelay(int delay) voidsetPathfind(boolean pathfind) voidsetPaused(boolean paused) Pauses waypoint execution.voidsetWorldGuardRegion(String region) voidsetXYRange(int xrange, int yrange) 
- 
Constructor Details- 
WanderWaypointProviderpublic WanderWaypointProvider()
 
- 
- 
Method Details- 
addRegionCentre
- 
addRegionCentres
- 
createEditorDescription copied from interface:WaypointProviderCreates anWaypointEditorwith the givenCommandSender.- Specified by:
- createEditorin interface- WaypointProvider
- Parameters:
- sender- The player to link the editor with
- args-
- Returns:
- The editor
 
- 
getDelaypublic int getDelay()
- 
getRegionCentres
- 
getWorldGuardRegion
- 
getXRangepublic int getXRange()
- 
getYRangepublic int getYRange()
- 
isPathfindpublic boolean isPathfind()
- 
isPausedpublic boolean isPaused()Description copied from interface:WaypointProviderReturns whether this provider has paused execution of waypoints.- Specified by:
- isPausedin interface- WaypointProvider
- Returns:
- Whether the provider is paused.
 
- 
load- Specified by:
- loadin interface- Persistable
 
- 
onRemovepublic void onRemove()Description copied from interface:WaypointProviderCalled when the provider is removed from the NPC.- Specified by:
- onRemovein interface- WaypointProvider
 
- 
onSpawnDescription copied from interface:WaypointProviderCalled when theNPCattached to this provider is spawned.- Specified by:
- onSpawnin interface- WaypointProvider
- Parameters:
- npc- The attached NPC
 
- 
removeRegionCentre
- 
removeRegionCentres
- 
save- Specified by:
- savein interface- Persistable
 
- 
setDelaypublic void setDelay(int delay) 
- 
setPathfindpublic void setPathfind(boolean pathfind) 
- 
setPausedpublic void setPaused(boolean paused) Description copied from interface:WaypointProviderPauses waypoint execution.- Specified by:
- setPausedin interface- WaypointProvider
- Parameters:
- paused- Whether to pause waypoint execution.
 
- 
setWorldGuardRegion
- 
setXYRangepublic void setXYRange(int xrange, int yrange) 
 
-