Uses of Interface
net.citizensnpcs.api.npc.NPC
Package
Description
-
Uses of NPC in net.citizensnpcs
-
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 TypeMethodDescriptionWanderGoal.Builder.destinationPicker
(Function<NPC, Location> picker) ModifierConstructorDescriptionFollowPathGoal
(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.NPCMoveEvent.getNPC()
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
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
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
void
TemplateRegistry.generateTemplateFromNPC
(NamespacedKey key, NPC npc) 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) -
Uses of NPC in net.citizensnpcs.commands.gui
-
Uses of NPC in net.citizensnpcs.commands.history
-
Uses of NPC in net.citizensnpcs.editor
Modifier and TypeMethodDescriptionvoid
void
void
void
ModifierConstructorDescriptionCopierEditor
(Player player, NPC npc) EquipmentEditor
(Player player, NPC npc) -
Uses of NPC in net.citizensnpcs.npc
Modifier 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) Modifier 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
ModifierConstructorDescriptionAStarNavigationStrategy
(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
Modifier 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
Modifier and TypeFieldDescriptionprotected NPC
HologramTrait.SingleEntityHologramRenderer.hologram
Modifier and TypeMethodDescriptionprotected NPC
protected NPC
protected NPC
HologramTrait.ArmorstandVehicleRenderer.createNPC
(Entity base, String name, org.joml.Vector3d offset) protected NPC
HologramTrait.InteractionVehicleRenderer.createNPC
(Entity base, String name, org.joml.Vector3d offset) protected NPC
protected NPC
protected abstract NPC
HologramTrait.SingleEntityHologramRenderer.createNPC
(Entity base, String text, org.joml.Vector3d offset) protected NPC
ClickRedirectTrait.getRedirectNPC()
Modifier and TypeMethodDescriptionboolean
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
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 toHologramTrait.SingleEntityHologramRenderer.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) ModifierConstructorDescriptionClickRedirectTrait
(NPC npc) GroundController
(NPC npc) protected
HologramRendererCreateEvent
(NPC npc, HologramTrait.HologramRenderer renderer, boolean nameRenderer) LookAirController
(NPC npc) -
Uses of NPC in net.citizensnpcs.trait.versioned
Modifier 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
Modifier and TypeMethodDescriptionvoid
Runs waypoint triggers for the given NPC.void
void
void
void
Called when theNPC
attached to this provider is spawned. -
Uses of NPC in net.citizensnpcs.trait.waypoint.triggers
Modifier 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
Modifier 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)