Uses of Interface
net.citizensnpcs.api.npc.NPC
Packages that use NPC
Package
Description
-
Uses of NPC in net.citizensnpcs
Constructors in net.citizensnpcs with parameters of type NPC -
Uses of NPC in net.citizensnpcs.api
Methods in net.citizensnpcs.api that return types with arguments of type NPCModifier and TypeMethodDescriptionLocationLookup.getNearbyNPCs
(NPC npc) LocationLookup.getNearbyNPCs
(Location base, double dist) LocationLookup.getNearbyNPCs
(World world, double[] min, double[] max) Methods in net.citizensnpcs.api with parameters of type NPCModifier and TypeMethodDescriptionLocationLookup.getNearbyNPCs
(NPC npc) LocationLookup.getNearbyPlayers
(NPC npc) -
Uses of NPC in net.citizensnpcs.api.ai
Methods in net.citizensnpcs.api.ai that return NPCMethods in net.citizensnpcs.api.ai with parameters of type NPC -
Uses of NPC in net.citizensnpcs.api.ai.event
Methods in net.citizensnpcs.api.ai.event that return NPC -
Uses of NPC in net.citizensnpcs.api.ai.flocking
Methods in net.citizensnpcs.api.ai.flocking that return types with arguments of type NPCModifier and TypeMethodDescriptionReturns the NPCs to be considered part of a flock.GroupNPCFlock.getNPCs()
Methods in net.citizensnpcs.api.ai.flocking with parameters of type NPCModifier and TypeMethodDescriptionReturns the NPCs to be considered part of a flock.AlignmentBehavior.getVector
(NPC npc, Collection<NPC> nearby) CohesionBehavior.getVector
(NPC npc, Collection<NPC> nearby) FlockBehavior.getVector
(NPC npc, Collection<NPC> nearby) Returns the displacement vector to be combined with otherFlockBehavior
vectors by aFlocker
.SeparationBehavior.getVector
(NPC npc, Collection<NPC> nearby) Method parameters in net.citizensnpcs.api.ai.flocking with type arguments of type NPCModifier and TypeMethodDescriptionstatic GroupNPCFlock
static GroupNPCFlock
GroupNPCFlock.createWithRadius
(Iterable<NPC> npcs, double radius) AlignmentBehavior.getVector
(NPC npc, Collection<NPC> nearby) CohesionBehavior.getVector
(NPC npc, Collection<NPC> nearby) FlockBehavior.getVector
(NPC npc, Collection<NPC> nearby) Returns the displacement vector to be combined with otherFlockBehavior
vectors by aFlocker
.SeparationBehavior.getVector
(NPC npc, Collection<NPC> nearby) Constructors in net.citizensnpcs.api.ai.flocking with parameters of type NPCConstructor parameters in net.citizensnpcs.api.ai.flocking with type arguments of type NPC -
Uses of NPC in net.citizensnpcs.api.ai.goals
Methods in net.citizensnpcs.api.ai.goals with parameters of type NPCModifier and TypeMethodDescriptionstatic WanderGoal.Builder
static FollowPathGoal
FollowPathGoal.create
(NPC npc, List<MoveToGoal> path) static FollowPathGoal
FollowPathGoal.createFromLocations
(NPC npc, List<Location> path) Method parameters in net.citizensnpcs.api.ai.goals with type arguments of type NPCModifier and TypeMethodDescriptionWanderGoal.Builder.destinationPicker
(Function<NPC, Location> picker) Constructors in net.citizensnpcs.api.ai.goals with parameters of type NPCModifierConstructorDescriptionFollowPathGoal
(NPC npc, List<MoveToGoal> path) MoveToGoal
(NPC npc, Location target) -
Uses of NPC in net.citizensnpcs.api.ai.speech
Constructors in net.citizensnpcs.api.ai.speech with parameters of type NPCModifierConstructorDescriptionSpeechContext
(NPC talker, String message) SpeechContext
(NPC talker, String message, Entity recipient) TalkableEntity
(NPC npc) -
Uses of NPC in net.citizensnpcs.api.astar.pathfinder
Methods in net.citizensnpcs.api.astar.pathfinder with parameters of type NPCModifier and TypeMethodDescriptiondefault void
Run once the specificed point is reached.void
void
Run every tick when moving towards a specific block.Constructors in net.citizensnpcs.api.astar.pathfinder with parameters of type NPC -
Uses of NPC in net.citizensnpcs.api.command
Methods in net.citizensnpcs.api.command with parameters of type NPCModifier and TypeMethodDescriptionArg.CompletionsProvider.getCompletions
(CommandContext args, CommandSender sender, NPC npc) Arg.CompletionsProvider.Identity.getCompletions
(CommandContext args, CommandSender sender, NPC npc) Arg.CompletionsProvider.OptionalKeyedCompletions.getCompletions
(CommandContext args, CommandSender sender, NPC npc) Arg.FlagValidator.Identity.validate
(CommandContext args, CommandSender sender, NPC npc, String input) Arg.FlagValidator.validate
(CommandContext args, CommandSender sender, NPC npc, String input) -
Uses of NPC in net.citizensnpcs.api.event
Methods in net.citizensnpcs.api.event that return NPCModifier and TypeMethodDescriptionNPCCloneEvent.getClone()
NPCEvent.getNPC()
Get the npc involved in the event.NPCMoveEvent.getNPC()
CommandSenderCloneNPCEvent.getOriginal()
PlayerCloneNPCEvent.getOriginal()
CitizensGetSelectedNPCEvent.getSelected()
Methods in net.citizensnpcs.api.event with parameters of type NPCConstructors in net.citizensnpcs.api.event with parameters of type NPCModifierConstructorDescriptionCommandSenderCloneNPCEvent
(CommandSender sender, NPC npc, NPC copy) CommandSenderCreateNPCEvent
(CommandSender sender, NPC npc) EntityTargetNPCEvent
(EntityTargetEvent event, NPC npc) NPCAddTraitEvent
(NPC npc, Trait trait) protected
NPCClickEvent
(NPC npc, Player clicker) NPCCloneEvent
(NPC npc, NPC clone) NPCCollisionEvent
(NPC npc, Entity entity) NPCCombustByBlockEvent
(EntityCombustByBlockEvent event, NPC npc) NPCCombustByEntityEvent
(EntityCombustByEntityEvent event, NPC npc) NPCCombustEvent
(EntityCombustEvent event, NPC npc) NPCCommandDispatchEvent
(NPC npc, Player player) NPCCreateEvent
(NPC npc) NPCDamageByBlockEvent
(NPC npc, EntityDamageByBlockEvent event) NPCDamageByEntityEvent
(NPC npc, EntityDamageByEntityEvent event) NPCDamageEntityEvent
(NPC npc, EntityDamageByEntityEvent event) NPCDamageEvent
(NPC npc, EntityDamageEvent event) NPCDeathEvent
(NPC npc, EntityDeathEvent event) NPCDespawnEvent
(NPC npc, DespawnReason reason) protected
protected
NPCKnockbackEvent
(NPC npc, double strength, Vector vector, Entity entity) NPCLeftClickEvent
(NPC npc, Player leftClicker) NPCLinkToPlayerEvent
(NPC npc, Player player, boolean async) NPCLookCloseChangeTargetEvent
(NPC npc, Player old, Player next) NPCMoveEvent
(NPC npc, Location from, Location to) NPCOpenDoorEvent
(NPC npc, Block block) NPCOpenGateEvent
(NPC npc, Block block) NPCPistonPushEvent
(NPC npc) NPCPushEvent
(NPC npc, Vector vector, Entity pushedBy) NPCRemoveByCommandSenderEvent
(NPC npc, CommandSender source) NPCRemoveEvent
(NPC npc) NPCRemoveTraitEvent
(NPC npc, Trait trait) NPCRenameEvent
(NPC npc, String oldName, String newName) NPCRightClickEvent
(NPC npc, Player rightClicker) NPCSeenByPlayerEvent
(NPC npc, Player player) NPCSelectEvent
(NPC npc, CommandSender sender) NPCSpawnEvent
(NPC npc, Location location, SpawnReason reason) NPCTeleportEvent
(NPC npc, Location to) NPCTraitCommandAttachEvent
(NPC npc, Class<? extends Trait> traitClass, CommandSender sender) NPCTraitCommandDetachEvent
(NPC npc, Class<? extends Trait> traitClass, CommandSender sender) protected
NPCTraitEvent
(NPC npc, Trait trait) NPCUnlinkFromPlayerEvent
(NPC npc, Player player) NPCVehicleDamageEvent
(NPC npc, VehicleDamageEvent event) PlayerCloneNPCEvent
(Player player, NPC npc, NPC copy) PlayerCreateNPCEvent
(Player player, NPC npc) -
Uses of NPC in net.citizensnpcs.api.npc
Classes in net.citizensnpcs.api.npc that implement NPCMethods in net.citizensnpcs.api.npc that return NPCModifier and TypeMethodDescriptionAbstractNPC.clone()
NPC.clone()
AbstractNPC.copy()
NPC.copy()
NPCRegistry.createNPC
(EntityType type, String name) Creates an despawnedNPC
.NPCRegistry.createNPC
(EntityType type, String name, Location loc) Creates an spawnedNPC
at the given location.NPCRegistry.createNPC
(EntityType type, UUID uuid, int id, String name) Creates anNPC
with the given id.NPCRegistry.createNPCUsingItem
(EntityType type, String name, ItemStack item) Creates an despawnedNPC
using the given ItemStack to configure it if possible.NPCRegistry.getById
(int id) Gets theNPC
with the given ID if it exists.NPCRegistry.getByUniqueId
(UUID uuid) Gets theNPC
with the given unique ID if it exists.NPCRegistry.getByUniqueIdGlobal
(UUID uuid) Gets theNPC
with the given unique ID if it exists, otherwise null.NPCSelector.getSelected
(CommandSender sender) Methods in net.citizensnpcs.api.npc that return types with arguments of type NPCModifier and TypeMethodDescriptionNPCRegistry.sorted()
Returns a sorted view of this registry, sorted by NPC id.Methods in net.citizensnpcs.api.npc with parameters of type NPCModifier and TypeMethodDescriptionvoid
void
Clears all data about the givenNPC
from storage.void
void
NPCRegistry.deregister
(NPC npc) Deregisters theNPC
and removes all data about it from the data store.void
NPCSelector.select
(CommandSender sender, NPC npc) void
void
Stores the givenNPC
into memory or to a disk representation.void
-
Uses of NPC in net.citizensnpcs.api.npc.templates
Methods in net.citizensnpcs.api.npc.templates with parameters of type NPCModifier and TypeMethodDescriptionvoid
void
void
void
void
TemplateRegistry.generateTemplateFromNPC
(NamespacedKey key, NPC npc) Constructor parameters in net.citizensnpcs.api.npc.templates with type arguments of type NPCModifierConstructorDescriptionCommandEventAction
(Class<? extends NPCEvent> clazz, Consumer<NPC> commands) -
Uses of NPC in net.citizensnpcs.api.trait
Fields in net.citizensnpcs.api.trait declared as NPCMethods in net.citizensnpcs.api.trait that return NPCMethods in net.citizensnpcs.api.trait with parameters of type NPCModifier and TypeMethodDescriptionvoid
TraitFactory.addDefaultTraits
(NPC npc) Adds all default traits to a given NPC.void
-
Uses of NPC in net.citizensnpcs.api.trait.trait
Methods in net.citizensnpcs.api.trait.trait with parameters of type NPC -
Uses of NPC in net.citizensnpcs.api.util
Methods in net.citizensnpcs.api.util with parameters of type NPCModifier and TypeMethodDescriptionPlaceholders.PlaceholderFunction.apply
(NPC npc, CommandSender sender, String input) static String
Placeholders.replace
(String text, CommandSender sender, NPC npc) static String
Placeholders.replaceName
(String text, CommandSender sender, NPC npc) static void
Messaging.sendWithNPC
(CommandSender sender, Object msg, NPC npc) static void
Messaging.sendWithNPCColorless
(CommandSender sender, Object msg, NPC npc) -
Uses of NPC in net.citizensnpcs.commands.gui
Constructors in net.citizensnpcs.commands.gui with parameters of type NPC -
Uses of NPC in net.citizensnpcs.commands.history
Constructors in net.citizensnpcs.commands.history with parameters of type NPC -
Uses of NPC in net.citizensnpcs.editor
Methods in net.citizensnpcs.editor with parameters of type NPCModifier and TypeMethodDescriptionvoid
void
void
void
Constructors in net.citizensnpcs.editor with parameters of type NPCModifierConstructorDescriptionCopierEditor
(Player player, NPC npc) EquipmentEditor
(Player player, NPC npc) -
Uses of NPC in net.citizensnpcs.npc
Classes in net.citizensnpcs.npc that implement NPCMethods in net.citizensnpcs.npc that return NPCModifier and TypeMethodDescriptionCitizensNPCRegistry.createNPC
(EntityType type, String name) CitizensNPCRegistry.createNPC
(EntityType type, String name, Location loc) CitizensNPCRegistry.createNPC
(EntityType type, UUID uuid, int id, String name) CitizensNPCRegistry.createNPCUsingItem
(EntityType type, String name, ItemStack item) CitizensNPCRegistry.getById
(int id) CitizensNPCRegistry.getByUniqueId
(UUID uuid) CitizensNPCRegistry.getByUniqueIdGlobal
(UUID uuid) NPCSelector.getSelected
(CommandSender sender) Methods in net.citizensnpcs.npc that return types with arguments of type NPCMethods in net.citizensnpcs.npc with parameters of type NPCModifier and TypeMethodDescriptionvoid
CitizensTraitFactory.addDefaultTraits
(NPC npc) void
void
protected abstract Entity
AbstractEntityController.createEntity
(Location at, NPC npc) void
CitizensNPCRegistry.deregister
(NPC npc) void
NPCSelector.select
(CommandSender sender, NPC npc) -
Uses of NPC in net.citizensnpcs.npc.ai
Methods in net.citizensnpcs.npc.ai that return NPCConstructors in net.citizensnpcs.npc.ai with parameters of type NPCModifierConstructorDescriptionAStarNavigationStrategy
(NPC npc, Iterable<Vector> path, NavigatorParameters params) AStarNavigationStrategy
(NPC npc, Location dest, NavigatorParameters params) CitizensNavigator
(NPC npc) 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 NPC in net.citizensnpcs.npc.skin
Methods in net.citizensnpcs.npc.skin with parameters of type NPCModifier and TypeMethodDescriptionvoid
SkinUpdateTracker.onNPCDespawn
(NPC npc) Invoke when an NPC is despawned.void
SkinUpdateTracker.onNPCNavigationBegin
(NPC npc) Invoke when an NPC begins navigating.void
SkinUpdateTracker.onNPCNavigationComplete
(NPC npc) Invoke when an NPC finishes navigating.void
SkinUpdateTracker.onNPCSpawn
(NPC npc) Invoke when an NPC is spawned. -
Uses of NPC in net.citizensnpcs.trait
Fields in net.citizensnpcs.trait declared as NPCModifier and TypeFieldDescriptionprotected NPC
HologramTrait.SingleEntityHologramRenderer.hologram
Methods in net.citizensnpcs.trait that return NPCModifier and TypeMethodDescriptionprotected NPC
protected NPC
protected NPC
protected NPC
protected NPC
protected NPC
protected abstract NPC
HologramTrait.SingleEntityHologramRenderer.createNPC
(NPC base, String text, org.joml.Vector3d offset) protected NPC
ClickRedirectTrait.getRedirectToNPC()
Methods in net.citizensnpcs.trait with parameters of type NPCModifier and TypeMethodDescriptionboolean
protected NPC
protected NPC
protected NPC
protected NPC
protected NPC
protected NPC
protected abstract NPC
HologramTrait.SingleEntityHologramRenderer.createNPC
(NPC base, String text, org.joml.Vector3d offset) protected NPC
HologramTrait.TabCompletions.getCompletions
(CommandContext args, CommandSender sender, NPC npc) HologramTrait.HologramRenderer.getPerPlayerText
(NPC hologram, Player viewer) Ifinvalid reference
NPC.Metadata.HOLOGRAM_RENDERER
HologramTrait.SingleEntityHologramRenderer.getPerPlayerText
(NPC npc, Player viewer) default boolean
HologramTrait.HologramRenderer.isSneaking
(NPC npc, Player player) Ifinvalid reference
NPC.Metadata.HOLOGRAM_RENDERER
void
default void
HologramTrait.HologramRenderer.onSeenByPlayer
(NPC hologram, Player player) Ifinvalid reference
NPC.Metadata.HOLOGRAM_RENDERER
void
HologramTrait.InteractionVehicleRenderer.onSeenByPlayer
(NPC npc, Player player) void
Render the hologram at a given offset.void
protected void
protected void
protected void
void
void
protected void
protected abstract void
Hologram spawning is delegated toinvalid reference
#createNPC(Entity, String, Vector3d)
void
void
void
ArmorStandTrait.setAsHelperEntity
(NPC parent) void
ArmorStandTrait.setAsHelperEntityWithName
(NPC parent) protected void
HologramTrait.SingleEntityHologramRenderer.spawnHologram
(NPC npc, org.joml.Vector3d offset) void
HologramTrait.HologramRenderer.updateText
(NPC parent, String text) Update the hologram text.void
HologramTrait.ItemDisplayRenderer.updateText
(NPC npc, String text) void
HologramTrait.ItemRenderer.updateText
(NPC npc, String text) void
HologramTrait.SingleEntityHologramRenderer.updateText
(NPC npc, String raw) void
HologramTrait.TextDisplayRenderer.updateText
(NPC npc, String raw) Constructors in net.citizensnpcs.trait with parameters of type NPCModifierConstructorDescriptionClickRedirectTrait
(NPC redirectTo) GroundController
(NPC npc) protected
HologramRendererCreateEvent
(NPC npc, HologramTrait.HologramRenderer renderer, boolean nameRenderer) LookAirController
(NPC npc) -
Uses of NPC in net.citizensnpcs.trait.versioned
Methods in net.citizensnpcs.trait.versioned with parameters of type NPCModifier and TypeMethodDescriptionstatic void
AllayTrait.allay
(CommandContext args, CommandSender sender, NPC npc) static void
ArmadilloTrait.allay
(CommandContext args, CommandSender sender, NPC npc, ArmadilloTrait.ArmadilloState state) static void
AreaEffectCloudTrait.areaeffectcloud
(CommandContext args, CommandSender sender, NPC npc, Integer duration, Float radius, Color color, PotionType type, Particle particle) static void
AxolotlTrait.axolotl
(CommandContext args, CommandSender sender, NPC npc, Axolotl.Variant variant) static void
BeeTrait.bee
(CommandContext args, CommandSender sender, NPC npc, Integer anger) void
BoatTrait.boat
(CommandContext args, CommandSender sender, NPC npc, String stype) static void
BossBarTrait.bossbar
(CommandContext args, CommandSender sender, NPC npc, BarStyle style, String track, BarColor color, Boolean visible, Integer range, String title, String flags, String viewpermission) static void
CamelTrait.camel
(CommandContext args, CommandSender sender, NPC npc, CamelTrait.CamelPose pose) static void
CatTrait.cat
(CommandContext args, CommandSender sender, NPC npc, DyeColor ccolor, Cat.Type type) static void
DisplayTrait.display
(CommandContext args, CommandSender sender, NPC npc, Display.Billboard billboard, org.joml.Quaternionf leftrotation, org.joml.Quaternionf rightrotation, Vector scale, Float viewRange, String brightness, Integer interpolationDelay, Integer interpolationDuration, Float height, Float shadowRadius, Float shadowStrength, Float width) static void
TextDisplayTrait.display
(CommandContext args, CommandSender sender, NPC npc, Boolean shadowed, Boolean seethrough, Integer lineWidth, String text, Color bgcolor, TextDisplay.TextAlignment alignment) static void
EnderDragonTrait.enderdragon
(CommandContext args, CommandSender sender, NPC npc, EnderDragon.Phase phase, Boolean destroyWalls) static void
FoxTrait.fox
(CommandContext args, CommandSender sender, NPC npc, Boolean sleeping, Boolean sitting, Boolean crouching, String rawtype, Boolean pouncing, Boolean interested, Boolean faceplanted) static void
FrogTrait.frog
(CommandContext args, CommandSender sender, NPC npc, Frog.Variant variant) static void
GoatTrait.goat
(CommandContext args, CommandSender sender, NPC npc) static void
LlamaTrait.llama
(CommandContext args, CommandSender sender, NPC npc, Llama.Color color, Integer strength) static void
MushroomCowTrait.mushroomcow
(CommandContext args, CommandSender sender, NPC npc, MushroomCow.Variant variant) static void
PandaTrait.panda
(CommandContext args, CommandSender sender, NPC npc, Panda.Gene gene, Panda.Gene hiddengene) static void
ParrotTrait.parrot
(CommandContext args, CommandSender sender, NPC npc, Parrot.Variant variant) static void
PhantomTrait.phantom
(CommandContext args, CommandSender sender, NPC npc, Integer size) static void
PiglinTrait.piglin
(CommandContext args, CommandSender sender, NPC npc, Boolean dancing) static void
PolarBearTrait.polarbear
(CommandContext args, CommandSender sender, NPC npc) static void
PufferFishTrait.pufferfish
(CommandContext args, CommandSender sender, NPC npc, Integer state) static void
ShulkerTrait.shulker
(CommandContext args, CommandSender sender, NPC npc, Integer peek, DyeColor color) static void
SnifferTrait.sniffer
(CommandContext args, CommandSender sender, NPC npc, SnifferTrait.SnifferState state) static void
SnowmanTrait.snowman
(CommandContext args, CommandSender sender, NPC npc) static void
SpellcasterTrait.Spellcaster
(CommandContext args, CommandSender sender, NPC npc, Spellcaster.Spell spell) static void
TropicalFishTrait.tropicalfish
(CommandContext args, CommandSender sender, NPC npc, DyeColor body, DyeColor patterncolor, TropicalFish.Pattern pattern) static void
VillagerTrait.villager
(CommandContext args, CommandSender sender, NPC npc, Villager.Profession profession, Villager.Type type, Integer level) static void
WardenTrait.warden
(CommandContext args, CommandSender sender, NPC npc, String command, String player, Integer anger) -
Uses of NPC in net.citizensnpcs.trait.waypoint
Methods in net.citizensnpcs.trait.waypoint with parameters of type NPCModifier and TypeMethodDescriptionvoid
Runs waypoint triggers for the given NPC.void
void
void
void
Called when theNPC
attached to this provider is spawned.Constructors in net.citizensnpcs.trait.waypoint with parameters of type NPC -
Uses of NPC in net.citizensnpcs.trait.waypoint.triggers
Methods in net.citizensnpcs.trait.waypoint.triggers with parameters of type NPCModifier and TypeMethodDescriptionvoid
AnimationTrigger.onWaypointReached
(NPC npc, Location waypoint) void
ChatTrigger.onWaypointReached
(NPC npc, Location waypoint) void
CommandTrigger.onWaypointReached
(NPC npc, Location waypoint) void
DelayTrigger.onWaypointReached
(NPC npc, Location waypoint) void
SpeedTrigger.onWaypointReached
(NPC npc, Location waypoint) void
TeleportTrigger.onWaypointReached
(NPC npc, Location waypoint) void
WaypointTrigger.onWaypointReached
(NPC npc, Location waypoint) -
Uses of NPC in net.citizensnpcs.util
Methods in net.citizensnpcs.util with parameters of type NPCModifier and TypeMethodDescriptionstatic void
Util.callCollisionEvent
(NPC npc, Entity entity) static void
NMS.callKnockbackEvent
(NPC npc, float strength, double dx, double dz, Consumer<NPCKnockbackEvent> cb) static boolean
Util.callPistonPushEvent
(NPC npc) static Vector
Util.callPushEvent
(NPC npc, double x, double y, double z) static int
NMS.getFallDistance
(NPC npc, int def) static float
NMS.getJumpPower
(NPC npc, float original) static float
NMS.getSpeedFor
(NPC npc) float
NMSBridge.getSpeedFor
(NPC npc) static boolean
NMSBridge.playerTicker
(NPC npc, Player entity) static void
Util.runCommand
(NPC npc, Player clicker, String command, boolean op, boolean player) static boolean
NMS.shouldBroadcastToPlayer
(NPC npc, Supplier<Boolean> defaultResponse) static void
NMS.updatePathfindingRange
(NPC npc, float pathfindingRange) void
NMSBridge.updatePathfindingRange
(NPC npc, float pathfindingRange)