Uses of Interface
net.citizensnpcs.api.npc.NPC
Package
Description
-
Uses of NPC in net.citizensnpcs.api
Modifier and TypeMethodDescriptionLocationLookup.getNearbyNPCs
(NPC npc) LocationLookup.getNearbyNPCs
(Location base, double dist) LocationLookup.getNearbyNPCs
(World world, double[] min, double[] max) Modifier and TypeMethodDescriptionLocationLookup.getNearbyNPCs
(NPC npc) LocationLookup.getNearbyPlayers
(NPC npc) -
Uses of NPC in net.citizensnpcs.api.ai
-
Uses of NPC in net.citizensnpcs.api.ai.event
-
Uses of NPC in net.citizensnpcs.api.ai.flocking
Modifier and TypeMethodDescriptionReturns the NPCs to be considered part of a flock.GroupNPCFlock.getNPCs()
Modifier 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) Modifier 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) -
Uses of NPC in net.citizensnpcs.api.ai.goals
Modifier and TypeMethodDescriptionstatic WanderGoal.Builder
static FollowPathGoal
FollowPathGoal.create
(NPC npc, List<MoveToGoal> path) static FollowPathGoal
FollowPathGoal.createFromLocations
(NPC npc, List<Location> path) Modifier and TypeMethodDescriptionModifierConstructorDescriptionFollowPathGoal
(NPC npc, List<MoveToGoal> path) MoveToGoal
(NPC npc, Location target) -
Uses of NPC in net.citizensnpcs.api.ai.speech
ModifierConstructorDescriptionSpeechContext
(NPC talker, String message) SpeechContext
(NPC talker, String message, Entity recipient) TalkableEntity
(NPC npc) -
Uses of NPC in net.citizensnpcs.api.astar.pathfinder
Modifier and TypeMethodDescriptiondefault void
Run once the specificed point is reached.void
void
Run every tick when moving towards a specific block. -
Uses of NPC in net.citizensnpcs.api.command
Modifier and TypeMethodDescriptionArg.CompletionsProvider.getCompletions
(CommandContext args, CommandSender sender, NPC npc) Arg.CompletionsProvider.Identity.getCompletions
(CommandContext args, CommandSender sender, NPC npc) Arg.CompletionsProvider.OptionalEnumCompletions.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
Modifier and TypeMethodDescriptionNPCCloneEvent.getClone()
NPCEvent.getNPC()
Get the npc involved in the event.CommandSenderCloneNPCEvent.getOriginal()
PlayerCloneNPCEvent.getOriginal()
CitizensGetSelectedNPCEvent.getSelected()
ModifierConstructorDescriptionCommandSenderCloneNPCEvent
(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
NPCKnockbackEvent
(NPC npc, double strength, Vector vector, Entity entity) NPCLeftClickEvent
(NPC npc, Player leftClicker) NPCLinkToPlayerEvent
(NPC npc, Player player) NPCLookCloseChangeTargetEvent
(NPC npc, Player old, Player next) 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
Modifier 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) Modifier and TypeMethodDescriptionNPCRegistry.sorted()
Returns a sorted view of this registry, sorted by NPC id.Modifier 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
Modifier and TypeMethodDescriptionvoid
void
void
void
ModifierConstructorDescriptionCommandEventAction
(Class<? extends NPCEvent> clazz, Consumer<NPC> commands) -
Uses of NPC in net.citizensnpcs.api.trait
Modifier and TypeMethodDescriptionvoid
TraitFactory.addDefaultTraits
(NPC npc) Adds all default traits to a given NPC.void
-
Uses of NPC in net.citizensnpcs.api.trait.trait
-
Uses of NPC in net.citizensnpcs.api.util
Modifier 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)