Uses of Interface
net.citizensnpcs.api.npc.NPC
Packages that use NPC
Package
Description
-
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 otherFlockBehaviorvectors 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 GroupNPCFlockstatic GroupNPCFlockGroupNPCFlock.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 otherFlockBehaviorvectors 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.Builderstatic FollowPathGoalFollowPathGoal.create(NPC npc, List<MoveToGoal> path) static FollowPathGoalFollowPathGoal.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 voidRun once the specificed point is reached.voidvoidRun 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) float[]Arg.FloatArrayFlagValidator.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) protectedNPCClickEvent(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) protectedprotectedNPCKnockbackEvent(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) protectedNPCTraitEvent(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 spawnedNPCat the given location.NPCRegistry.createNPC(EntityType type, UUID uuid, int id, String name) Creates anNPCwith the given id.NPCRegistry.createNPCUsingItem(EntityType type, String name, ItemStack item) Creates an despawnedNPCusing the given ItemStack to configure it if possible.NPCRegistry.getById(int id) Gets theNPCwith the given ID if it exists.NPCRegistry.getByUniqueId(UUID uuid) Gets theNPCwith the given unique ID if it exists.NPCRegistry.getByUniqueIdGlobal(UUID uuid) Gets theNPCwith 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 TypeMethodDescriptionvoidvoidClears all data about the givenNPCfrom storage.voidvoidNPCRegistry.deregister(NPC npc) Deregisters theNPCand removes all data about it from the data store.voidNPCSelector.select(CommandSender sender, NPC npc) voidvoidStores the givenNPCinto 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 TypeMethodDescriptionvoidvoidvoidvoidvoidvoidTemplateRegistry.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 TypeMethodDescriptionvoidTraitFactory.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 NPCConstructors in net.citizensnpcs.api.trait.trait with parameters of type NPCModifierConstructorDescriptionNPCChangeEquipmentEvent(NPC npc, Equipment.EquipmentSlot slot, ItemStack stack) -
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 StringPlaceholders.replace(String text, CommandSender sender, NPC npc) static StringPlaceholders.replaceName(String text, CommandSender sender, NPC npc) static voidMessaging.sendWithNPC(CommandSender sender, Object msg, NPC npc) static voidMessaging.sendWithNPCColorless(CommandSender sender, Object msg, NPC npc)