Uses of Class
net.citizensnpcs.api.ai.NavigatorParameters
-
Uses of NavigatorParameters in net.citizensnpcs.api.ai
Modifier and TypeMethodDescriptionNavigatorParameters.addRunCallback
(Runnable callback) Adds aRunnable
callback that will be called every tick while the path is running.NavigatorParameters.addSingleUseCallback
(NavigatorCallback callback) Adds aNavigatorCallback
that will be removed immediately after being called.NavigatorParameters.attackDelayTicks
(int ticks) Sets the delay between attacks.NavigatorParameters.attackRange
(double range) When using aggressive NPC navigation, the NPC will wait until close enough to the target before attempting to use theattackStrategy()
.NavigatorParameters.avoidWater
(boolean avoidWater) Sets whether to avoid water while pathfindingNavigatorParameters.baseSpeed
(float speed) Sets the base movement speed of theNavigator
.NavigatorParameters.clearExaminers()
Clears all currentBlockExaminer
s.NavigatorParameters.clone()
NavigatorParameters.debug
(boolean debug) Sets whether the path should be debugged.NavigatorParameters.defaultAttackStrategy
(AttackStrategy defaultStrategy) Sets the defaultAttackStrategy
.NavigatorParameters.destinationTeleportMargin
(double margin) Sets the distance (in blocks) after which the NPC will directly teleport to the destination or -1 if disabled.NavigatorParameters.distanceMargin
(double newMargin) Sets the distance margin.NavigatorParameters.entityTargetLocationMapper
(Function<Entity, Location> mapper) Set the target location mapper.NavigatorParameters.examiner
(BlockExaminer examiner) Adds the givenBlockExaminer
.Navigator.getDefaultParameters()
Returns theNavigatorParameters
local to this navigator.Navigator.getLocalParameters()
Returns theNavigatorParameters
local to any current target execution.NavigatorParameters.lookAtFunction
(Function<Navigator, Location> lookAt) Sets the position to look at during pathfinding, overriding the default 'look at target' behaviour.NavigatorParameters.pathDistanceMargin
(double distance) Sets the path distance margin.NavigatorParameters.range
(float range) Sets the pathfinding range in blocks.NavigatorParameters.removeRunCallback
(Runnable runnable) Removes a previously added run callback.NavigatorParameters.speed
(float speed) Deprecated.NavigatorParameters.speedModifier
(float percent) Sets the movement speed modifier of theNavigator
.NavigatorParameters.stationaryTicks
(int ticks) Sets the number of stationary ticks before navigation is cancelled with aCancelReason
of STUCK.NavigatorParameters.straightLineTargetingDistance
(float distance) Sets the distance (in blocks) at which the entity targeter will switch to simply following a straight line to the target instead of pathfinding.NavigatorParameters.stuckAction
(StuckAction action) Sets theStuckAction
of the parameters.NavigatorParameters.updatePathRate
(int rate) Sets the update path rate, in ticks (default 20).NavigatorParameters.useNewPathfinder
(boolean use) Sets whether or not to use an A* pathfinder defined inAStarMachine
for pathfinding.Modifier and TypeMethodDescriptionboolean
Navigator.canNavigateTo
(Location dest, NavigatorParameters params) Returns whether the NPC can navigate to the given destination with the navigator parameters.Modifier and TypeMethodDescriptionvoid
Navigator.setTarget
(Function<NavigatorParameters, PathStrategy> strategy) Sets the current navigation to the specified strategy. -
Uses of NavigatorParameters in net.citizensnpcs.npc.ai
Modifier and TypeMethodDescriptionCitizensNavigator.getDefaultParameters()
CitizensNavigator.getLocalParameters()
Modifier and TypeMethodDescriptionboolean
CitizensNavigator.canNavigateTo
(Location dest, NavigatorParameters params) Modifier and TypeMethodDescriptionvoid
CitizensNavigator.setTarget
(Function<NavigatorParameters, PathStrategy> strategy) ModifierConstructorDescriptionAStarNavigationStrategy
(NPC npc, Iterable<Vector> path, NavigatorParameters params) AStarNavigationStrategy
(NPC npc, Location dest, NavigatorParameters params) AStarPlanner
(NavigatorParameters params, Location from, Location to) FlyingAStarNavigationStrategy
(NPC npc, Iterable<Vector> path, NavigatorParameters params) FlyingAStarNavigationStrategy
(NPC npc, Location dest, NavigatorParameters params) MCTargetStrategy
(NPC npc, Entity target, boolean aggro, NavigatorParameters params) StraightLineNavigationStrategy
(NPC npc, Entity target, NavigatorParameters params) StraightLineNavigationStrategy
(NPC npc, Location dest, NavigatorParameters params) -
Uses of NavigatorParameters in net.citizensnpcs.util
Modifier and TypeMethodDescriptionNMS.getTargetNavigator
(Entity entity, Iterable<Vector> dest, NavigatorParameters params) NMS.getTargetNavigator
(Entity entity, Entity target, NavigatorParameters parameters) NMS.getTargetNavigator
(Entity entity, Location dest, NavigatorParameters params) NMSBridge.getTargetNavigator
(Entity entity, Iterable<Vector> dest, NavigatorParameters params) NMSBridge.getTargetNavigator
(Entity handle, Entity target, NavigatorParameters parameters) NMSBridge.getTargetNavigator
(Entity entity, Location dest, NavigatorParameters params)
baseSpeed(float)