Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractNPC - Class in net.citizensnpcs.api.npc
- AbstractNPC(UUID, int, String, NPCRegistry) - Constructor for class net.citizensnpcs.api.npc.AbstractNPC
- AbstractPathStrategy - Class in net.citizensnpcs.api.ai
- AbstractPathStrategy(TargetType) - Constructor for class net.citizensnpcs.api.ai.AbstractPathStrategy
- accept(CitizensInventoryClickEvent) - Method in class net.citizensnpcs.api.gui.InputMenus.BooleanSlotHandler
- accept(CitizensInventoryClickEvent) - Method in class net.citizensnpcs.api.gui.PercentageSlotHandler
- accept(NPC) - Method in class net.citizensnpcs.api.npc.templates.CommandEventAction
- accept(NPC) - Method in class net.citizensnpcs.api.npc.templates.CommandListExecutor
- accept(NPC) - Method in class net.citizensnpcs.api.npc.templates.YamlReplacementAction
- ACTIVATION_RANGE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The activation range.
- add(int, int, int) - Method in class net.citizensnpcs.api.util.BoundingBox
- add(Location) - Method in class net.citizensnpcs.api.util.BoundingBox
- addArgAnnotation(int, Class<?>, Arg) - Method in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- addBehavior(Behavior) - Method in class net.citizensnpcs.api.ai.tree.Composite
- addBehavior(Behavior, int) - Method in interface net.citizensnpcs.api.ai.GoalController
-
Registers a
Behavior
with a given priority. - addBehavior(Behavior, int) - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- addCallback(PathPoint.PathCallback) - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint
-
Adds a path callback that will be executed if this path point is executed.
- addCallback(PathPoint.PathCallback) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- addChildNPC(NPC) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- addClickHandler(Consumer<CitizensInventoryClickEvent>) - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
-
Adds a click handler to this slot.
- addClusters(int, int) - Method in class net.citizensnpcs.api.hpastar.HPAGraph
- addClustersAtDepth(int, List<HPACluster>) - Method in class net.citizensnpcs.api.hpastar.HPAGraph
- addDefaultTraits(NPC) - Method in interface net.citizensnpcs.api.trait.TraitFactory
-
Adds all default traits to a given NPC.
- addFlagAnnotation(int, Class<?>, Flag) - Method in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- addGoal(Goal, int) - Method in interface net.citizensnpcs.api.ai.GoalController
-
Registers a
Goal
with a given priority. - addGoal(Goal, int) - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- addGroup(String) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Hides the NPC from the given permissions group
- addLine(String) - Method in class net.citizensnpcs.api.util.Paginator
- addPlayer(UUID) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Hides the NPC from the given Player UUID.
- addPrioritisableGoal(PrioritisableGoal) - Method in interface net.citizensnpcs.api.ai.GoalController
-
Registers a goal which can reprioritise itself dynamically every tick.
- addPrioritisableGoal(PrioritisableGoal) - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- addRecipient(Entity) - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
-
Adds a direct
Talkable
recipient. - addRecipients(List<Talkable>) - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
-
Adds a list of
Talkable
recipients. - addRunCallback(Runnable) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Adds a
Runnable
callback that will be called every tick while the path is running. - addRunnable(Runnable) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- addRunnable(Runnable) - Method in interface net.citizensnpcs.api.npc.NPC
-
Adds a
Runnable
that will run every tick. - addSingleUseCallback(NavigatorCallback) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Adds a
NavigatorCallback
that will be removed immediately after being called. - addTrait(Class<? extends Trait>) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- addTrait(Class<? extends Trait>) - Method in interface net.citizensnpcs.api.npc.NPC
-
Adds a trait to this NPC.
- addTrait(Trait) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- addTrait(Trait) - Method in interface net.citizensnpcs.api.npc.NPC
-
Adds a trait to this NPC.
- affectsGroup(String) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- affectsPlayer(UUID) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- Agent - Interface in net.citizensnpcs.api.astar
- aggressive(boolean) - Method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal.Builder
- AGGRESSIVE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
- aliases() - Element in annotation type net.citizensnpcs.api.command.Command
-
A list of root-level command aliases that will be accepted for this command.
- AlignmentBehavior - Class in net.citizensnpcs.api.ai.flocking
-
Implements alignment flocking with a particular weight i.e.
- AlignmentBehavior(double) - Constructor for class net.citizensnpcs.api.ai.flocking.AlignmentBehavior
- ALLOWLIST - Enum constant in enum net.citizensnpcs.api.trait.trait.PlayerFilter.Mode
- ALWAYS_USE_NAME_HOLOGRAM - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
- AMBIENT_SOUND - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Minecraft ambient sound played.
- amount() - Element in annotation type net.citizensnpcs.api.gui.MenuSlot
-
The amount of the itemstack to display.
- apply(List<Behavior>) - Method in class net.citizensnpcs.api.ai.tree.Selectors.PrioritySelection
- apply(NPC) - Method in class net.citizensnpcs.api.npc.templates.Template
- apply(NPC, CommandSender, String) - Method in interface net.citizensnpcs.api.util.Placeholders.PlaceholderFunction
- Arg - Annotation Type in net.citizensnpcs.api.command
- Arg.CompletionsProvider - Interface in net.citizensnpcs.api.command
- Arg.CompletionsProvider.Identity - Class in net.citizensnpcs.api.command
- Arg.CompletionsProvider.OptionalEnumCompletions - Class in net.citizensnpcs.api.command
- Arg.FlagValidator<T> - Interface in net.citizensnpcs.api.command
- Arg.FlagValidator.Identity - Class in net.citizensnpcs.api.command
- args - Variable in class net.citizensnpcs.api.command.CommandContext
- argsLength() - Method in class net.citizensnpcs.api.command.CommandContext
- asDefaultTrait() - Method in class net.citizensnpcs.api.trait.TraitInfo
- AStarGoal<T> - Interface in net.citizensnpcs.api.astar
- AStarMachine<N,
P> - Class in net.citizensnpcs.api.astar - AStarMachine.AStarState - Class in net.citizensnpcs.api.astar
- AStarNode - Class in net.citizensnpcs.api.astar
- AStarNode(AStarNode) - Constructor for class net.citizensnpcs.api.astar.AStarNode
- AStarSolution - Class in net.citizensnpcs.api.hpastar
- AStarSolution(List<ReversableAStarNode>, float) - Constructor for class net.citizensnpcs.api.hpastar.AStarSolution
- AStarStorage - Interface in net.citizensnpcs.api.astar
-
The storage for an
AStarMachine
. - AsyncChunkSnapshotBlockSource - Class in net.citizensnpcs.api.astar.pathfinder
- AsyncChunkSnapshotBlockSource(Location, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.AsyncChunkSnapshotBlockSource
- AsyncChunkSnapshotBlockSource(World, int, int, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.AsyncChunkSnapshotBlockSource
- AsyncPhTreeLoader() - Constructor for class net.citizensnpcs.api.LocationLookup.AsyncPhTreeLoader
- attackDelayTicks() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- attackDelayTicks(int) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the delay between attacks.
- attackRange() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- attackRange(double) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
When using aggressive NPC navigation, the NPC will wait until close enough to the target before attempting to use the
NavigatorParameters.attackStrategy()
. - attackStrategy() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- attackStrategy(AttackStrategy) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the
AttackStrategy
for use when attacking entity targets. - AttackStrategy - Interface in net.citizensnpcs.api.ai
- avoidWater() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- avoidWater(boolean) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets whether to avoid water while pathfinding
B
- baseSpeed() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- baseSpeed(float) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the base movement speed of the
Navigator
. - Behavior - Interface in net.citizensnpcs.api.ai.tree
-
The base class for the second iteration of the
Goal
API, which can be made backwards compatible by extendingBehaviorGoalAdapter
. - BehaviorGoalAdapter - Class in net.citizensnpcs.api.ai.tree
- BehaviorGoalAdapter() - Constructor for class net.citizensnpcs.api.ai.tree.BehaviorGoalAdapter
- BehaviorStatus - Enum in net.citizensnpcs.api.ai.tree
- blockBreaker() - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- blockBreaker(BiConsumer<Block, ItemStack>) - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- BlockBreaker - Class in net.citizensnpcs.api.npc
- BlockBreaker() - Constructor for class net.citizensnpcs.api.npc.BlockBreaker
- BlockBreaker.BlockBreakerConfiguration - Class in net.citizensnpcs.api.npc
- BlockBreakerConfiguration() - Constructor for class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- BlockExaminer - Interface in net.citizensnpcs.api.astar.pathfinder
- BlockExaminer.PassableState - Enum in net.citizensnpcs.api.astar.pathfinder
- BlockSource - Class in net.citizensnpcs.api.astar.pathfinder
- BlockSource() - Constructor for class net.citizensnpcs.api.astar.pathfinder.BlockSource
- blockStrengthModifier() - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- blockStrengthModifier(float) - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- BODY - Enum constant in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
- BooleanSlotHandler(Function<Boolean, String>) - Constructor for class net.citizensnpcs.api.gui.InputMenus.BooleanSlotHandler
- BooleanSlotHandler(Function<Boolean, String>, boolean) - Constructor for class net.citizensnpcs.api.gui.InputMenus.BooleanSlotHandler
- BOOTS - Enum constant in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
- BOUNDING_BOX_FUNCTION - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
- BoundingBox - Class in net.citizensnpcs.api.util
- BoundingBox(double, double, double, double, double, double) - Constructor for class net.citizensnpcs.api.util.BoundingBox
- build() - Method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal.Builder
- build() - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
- build() - Method in class net.citizensnpcs.api.ai.tree.Decorator.Builder
- build() - Method in class net.citizensnpcs.api.ai.tree.Selector.Builder
- builder(NPC) - Static method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal
- builder(NPC) - Static method in class net.citizensnpcs.api.ai.goals.WanderGoal
- Builder(NPC) - Constructor for class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal.Builder
- buildFrom(List<HPACluster>) - Method in class net.citizensnpcs.api.hpastar.HPACluster
- buildPlan() - Method in class net.citizensnpcs.api.astar.AStarNode
- buildPlan() - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- byKey(String) - Static method in enum net.citizensnpcs.api.npc.NPC.Metadata
- byName(String) - Static method in enum net.citizensnpcs.api.npc.NPC.Metadata
C
- CachingChunkBlockSource<T> - Class in net.citizensnpcs.api.astar.pathfinder
- CachingChunkBlockSource(Location, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- CachingChunkBlockSource(World, int, int, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- CachingChunkBlockSource(World, int, int, int, int) - Constructor for class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- callback() - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- callback(Runnable) - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- callback(Behavior, Consumer<BehaviorStatus>) - Static method in class net.citizensnpcs.api.ai.tree.Callback
- Callback - Class in net.citizensnpcs.api.ai.tree
-
Wraps an
Behavior
and runs callbacks when the underlying Behavior is finished. - callbacks() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- cancelCurrentExecution() - Method in interface net.citizensnpcs.api.ai.GoalController
-
Cancels and resets the currently executing goal.
- cancelCurrentExecution() - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- cancelNavigation() - Method in interface net.citizensnpcs.api.ai.Navigator
-
Cancels any running navigation towards a target.
- cancelNavigation(CancelReason) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Cancels any running navigation towards a target with a specific
CancelReason
. - CancelReason - Enum in net.citizensnpcs.api.ai.event
- canNavigateTo(Location) - Method in interface net.citizensnpcs.api.ai.Navigator
- canNavigateTo(Location, NavigatorParameters) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Returns whether the NPC can navigate to the given destination with the navigator parameters.
- canStandIn(Block...) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- canStandIn(Material...) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- canStandOn(Block) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- canStandOn(Material) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- canSwimInLava() - Method in class net.citizensnpcs.api.astar.pathfinder.SwimmingExaminer
- CatTypeEnum(Cat.Type) - Constructor for class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- checkValid() - Method in class net.citizensnpcs.api.trait.TraitInfo
- checkYSafe(double, World) - Static method in class net.citizensnpcs.api.util.SpigotUtil
- CHESTPLATE - Enum constant in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
- Choice() - Constructor for class net.citizensnpcs.api.gui.InputMenus.Choice
- CHUNK_LOAD - Enum constant in enum net.citizensnpcs.api.event.SpawnReason
- CHUNK_UNLOAD - Enum constant in enum net.citizensnpcs.api.event.DespawnReason
- ChunkBlockSource - Class in net.citizensnpcs.api.astar.pathfinder
- ChunkBlockSource(Location, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource
- ChunkBlockSource(World, int, int, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource
- ChunkSnapshotBlockSource - Class in net.citizensnpcs.api.astar.pathfinder
- ChunkSnapshotBlockSource(Location, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.ChunkSnapshotBlockSource
- ChunkSnapshotBlockSource(World, int, int, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.ChunkSnapshotBlockSource
- CitizensAPI - Class in net.citizensnpcs.api
-
Contains methods used in order to utilize the Citizens API.
- CitizensDeserialiseMetaEvent - Class in net.citizensnpcs.api.event
- CitizensDeserialiseMetaEvent(DataKey, ItemStack) - Constructor for class net.citizensnpcs.api.event.CitizensDeserialiseMetaEvent
- CitizensDisableEvent - Class in net.citizensnpcs.api.event
- CitizensDisableEvent() - Constructor for class net.citizensnpcs.api.event.CitizensDisableEvent
- CitizensEnableEvent - Class in net.citizensnpcs.api.event
- CitizensEnableEvent() - Constructor for class net.citizensnpcs.api.event.CitizensEnableEvent
- CitizensEvent - Class in net.citizensnpcs.api.event
-
Represents an event thrown by Citizens.
- CitizensEvent() - Constructor for class net.citizensnpcs.api.event.CitizensEvent
- CitizensEvent(boolean) - Constructor for class net.citizensnpcs.api.event.CitizensEvent
- CitizensGetSelectedNPCEvent - Class in net.citizensnpcs.api.event
- CitizensGetSelectedNPCEvent(CommandSender) - Constructor for class net.citizensnpcs.api.event.CitizensGetSelectedNPCEvent
- CitizensInventoryClickEvent - Class in net.citizensnpcs.api.gui
- CitizensInventoryClickEvent(InventoryClickEvent, int) - Constructor for class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- CitizensPlugin - Interface in net.citizensnpcs.api
- CitizensPreReloadEvent - Class in net.citizensnpcs.api.event
-
Called just before Citizens is reloaded.
- CitizensPreReloadEvent() - Constructor for class net.citizensnpcs.api.event.CitizensPreReloadEvent
- CitizensReloadEvent - Class in net.citizensnpcs.api.event
-
Called when Citizens is reloaded.
- CitizensReloadEvent() - Constructor for class net.citizensnpcs.api.event.CitizensReloadEvent
- CitizensSerialiseMetaEvent - Class in net.citizensnpcs.api.event
- CitizensSerialiseMetaEvent(DataKey, ItemMeta) - Constructor for class net.citizensnpcs.api.event.CitizensSerialiseMetaEvent
- clear() - Method in interface net.citizensnpcs.api.ai.GoalController
-
Clears the goal controller of all
Goal
s. - clear() - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- clear() - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- clear() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Clears all set UUID filters.
- clearCancelReason() - Method in class net.citizensnpcs.api.ai.AbstractPathStrategy
- clearCancelReason() - Method in interface net.citizensnpcs.api.ai.PathStrategy
-
Clears the CancelReason returned by
PathStrategy.getCancelReason()
and attempts to resume pathfinding. - clearData(NPC) - Method in class net.citizensnpcs.api.npc.MemoryNPCDataStore
- clearData(NPC) - Method in interface net.citizensnpcs.api.npc.NPCDataStore
-
Clears all data about the given
NPC
from storage. - clearData(NPC) - Method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- clearExaminers() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Clears all current
BlockExaminer
s. - clearSlots() - Method in class net.citizensnpcs.api.gui.MenuContext
- ClickHandler - Annotation Type in net.citizensnpcs.api.gui
-
Annotates a method as a click handler that will accept inventory click events.
- ClickHandlers - Annotation Type in net.citizensnpcs.api.gui
- clickToggle(Function<Boolean, String>, boolean) - Static method in class net.citizensnpcs.api.gui.InputMenus
- clone() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- clone() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- clone() - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Copies the metadata store.
- clone() - Method in interface net.citizensnpcs.api.npc.NPC
- clone() - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- clone() - Method in class net.citizensnpcs.api.util.BoundingBox
- clone() - Method in class net.citizensnpcs.api.util.EntityDim
- close() - Method in class net.citizensnpcs.api.gui.InventoryMenu
-
Closes the GUI and all associated viewer inventories.
- close() - Method in class net.citizensnpcs.api.util.SpigotUtil.InventoryViewAPI
- close(AStarNode) - Method in interface net.citizensnpcs.api.astar.AStarStorage
-
Close a given
AStarNode
, moving it from the open set to the closed set. - close(AStarNode) - Method in class net.citizensnpcs.api.astar.SimpleAStarStorage
- close(HumanEntity) - Method in class net.citizensnpcs.api.gui.InventoryMenu
-
Closes the GUI for just a specific Player.
- ClusterNode - Class in net.citizensnpcs.api.hpastar
- ClusterNode(int, int) - Constructor for class net.citizensnpcs.api.hpastar.ClusterNode
- clusters - Variable in class net.citizensnpcs.api.hpastar.HPAGraph
- CohesionBehavior - Class in net.citizensnpcs.api.ai.flocking
-
Implements cohesion flocking with a particular weight i.e.
- CohesionBehavior(double) - Constructor for class net.citizensnpcs.api.ai.flocking.CohesionBehavior
- collectionType() - Element in annotation type net.citizensnpcs.api.persistence.Persist
-
The specialised collection type to use when a super class is specified.
- COLLIDABLE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC is collidable with Players or not.
- coloredNameComponentCache - Variable in class net.citizensnpcs.api.npc.AbstractNPC
- coloredNameStringCache - Variable in class net.citizensnpcs.api.npc.AbstractNPC
- Command - Annotation Type in net.citizensnpcs.api.command
- COMMAND - Enum constant in enum net.citizensnpcs.api.event.SpawnReason
- COMMAND_HELP_HEADER - Static variable in class net.citizensnpcs.api.command.CommandMessages
- COMMAND_MISSING - Static variable in class net.citizensnpcs.api.command.CommandMessages
- COMMAND_PAGE_MISSING - Static variable in class net.citizensnpcs.api.command.CommandMessages
- CommandAnnotationProcessor - Interface in net.citizensnpcs.api.command
- CommandContext - Class in net.citizensnpcs.api.command
- CommandContext(boolean, CommandSender, String[]) - Constructor for class net.citizensnpcs.api.command.CommandContext
- CommandContext(String[]) - Constructor for class net.citizensnpcs.api.command.CommandContext
- CommandContext(CommandSender, String[]) - Constructor for class net.citizensnpcs.api.command.CommandContext
- CommandEventAction - Class in net.citizensnpcs.api.npc.templates
- CommandEventAction(Class<? extends NPCEvent>, Consumer<NPC>) - Constructor for class net.citizensnpcs.api.npc.templates.CommandEventAction
- CommandException - Exception Class in net.citizensnpcs.api.command.exception
- CommandException() - Constructor for exception class net.citizensnpcs.api.command.exception.CommandException
- CommandException(String) - Constructor for exception class net.citizensnpcs.api.command.exception.CommandException
- CommandException(String, Object...) - Constructor for exception class net.citizensnpcs.api.command.exception.CommandException
- CommandException(Throwable) - Constructor for exception class net.citizensnpcs.api.command.exception.CommandException
- CommandInfo(Command, Method) - Constructor for class net.citizensnpcs.api.command.CommandManager.CommandInfo
- CommandListExecutor - Class in net.citizensnpcs.api.npc.templates
- CommandListExecutor(List<String>) - Constructor for class net.citizensnpcs.api.npc.templates.CommandListExecutor
- CommandManager - Class in net.citizensnpcs.api.command
- CommandManager() - Constructor for class net.citizensnpcs.api.command.CommandManager
- CommandManager.CommandInfo - Class in net.citizensnpcs.api.command
- CommandMessages - Class in net.citizensnpcs.api.command
- CommandMessages() - Constructor for class net.citizensnpcs.api.command.CommandMessages
- CommandSenderCloneNPCEvent - Class in net.citizensnpcs.api.event
- CommandSenderCloneNPCEvent(CommandSender, NPC, NPC) - Constructor for class net.citizensnpcs.api.event.CommandSenderCloneNPCEvent
- CommandSenderCreateNPCEvent - Class in net.citizensnpcs.api.event
- CommandSenderCreateNPCEvent(CommandSender, NPC) - Constructor for class net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
- CommandUsageException - Exception Class in net.citizensnpcs.api.command.exception
- CommandUsageException() - Constructor for exception class net.citizensnpcs.api.command.exception.CommandUsageException
- CommandUsageException(String, String) - Constructor for exception class net.citizensnpcs.api.command.exception.CommandUsageException
- compareTo(Object) - Method in class net.citizensnpcs.api.ai.speech.TalkableEntity
-
Used to compare an Entity to this TalkableEntity
- compareTo(GoalController.GoalEntry) - Method in class net.citizensnpcs.api.ai.SimpleGoalEntry
- compareTo(AStarNode) - Method in class net.citizensnpcs.api.astar.AStarNode
- compareTo(ReversableAStarNode) - Method in class net.citizensnpcs.api.hpastar.ReversableAStarNode
- compatMaterial() - Element in annotation type net.citizensnpcs.api.gui.MenuSlot
-
For compatibility with old Minecraft versions - a two String array {intended material name, fallback material name} e.g.
- completions() - Element in annotation type net.citizensnpcs.api.command.Arg
- completions() - Element in annotation type net.citizensnpcs.api.command.Flag
- completionsProvider() - Element in annotation type net.citizensnpcs.api.command.Arg
- completionsProvider() - Element in annotation type net.citizensnpcs.api.command.Flag
- ComponentPersister - Class in net.citizensnpcs.api.persistence
- ComponentPersister() - Constructor for class net.citizensnpcs.api.persistence.ComponentPersister
- Composite - Class in net.citizensnpcs.api.ai.tree
-
The base class for composite
Behavior
s, which handle the transition between multiple sub-behaviors. - Composite(Collection<Behavior>) - Constructor for class net.citizensnpcs.api.ai.tree.Composite
- Composite(Behavior...) - Constructor for class net.citizensnpcs.api.ai.tree.Composite
- condition - Variable in class net.citizensnpcs.api.ai.tree.Precondition
- Condition - Interface in net.citizensnpcs.api.ai.tree
- configure(File, boolean, String, String, String) - Static method in class net.citizensnpcs.api.util.Messaging
- connect(int, HPAGraphNode, HPAGraphEdge.EdgeType, float) - Method in class net.citizensnpcs.api.hpastar.HPAGraphNode
- connect(HPACluster, Direction) - Method in class net.citizensnpcs.api.hpastar.HPACluster
- connectIntra() - Method in class net.citizensnpcs.api.hpastar.HPACluster
- console(boolean) - Method in class net.citizensnpcs.api.util.Paginator
- contains(HPACluster) - Method in class net.citizensnpcs.api.hpastar.HPACluster
- containsPlaceholders(String) - Static method in class net.citizensnpcs.api.util.Placeholders
- convert(BoundingBox) - Static method in class net.citizensnpcs.api.util.BoundingBox
- convertToVectors() - Method in class net.citizensnpcs.api.hpastar.AStarSolution
- copy() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- copy() - Method in interface net.citizensnpcs.api.npc.NPC
- create(Class<? extends InventoryMenuPage>) - Static method in class net.citizensnpcs.api.gui.InventoryMenu
-
Create an inventory menu instance starting at the given page.
- create(Class<? extends Trait>) - Static method in class net.citizensnpcs.api.trait.TraitInfo
-
Constructs a factory with the given trait class.
- create(Iterable<NPC>) - Static method in class net.citizensnpcs.api.ai.flocking.GroupNPCFlock
- create(Behavior) - Static method in class net.citizensnpcs.api.ai.tree.BehaviorGoalAdapter
- create(Condition, Behavior, Behavior) - Static method in class net.citizensnpcs.api.ai.tree.IfElse
- create(InventoryMenuPage) - Static method in class net.citizensnpcs.api.gui.InventoryMenu
-
Create an inventory menu instance starting at the given page.
- create(NPC, List<MoveToGoal>) - Static method in class net.citizensnpcs.api.ai.goals.FollowPathGoal
- create(DataKey) - Method in class net.citizensnpcs.api.persistence.ComponentPersister
- create(DataKey) - Method in class net.citizensnpcs.api.persistence.EulerAnglePersister
- create(DataKey) - Method in class net.citizensnpcs.api.persistence.ItemStackPersister
- create(DataKey) - Method in class net.citizensnpcs.api.persistence.LocationPersister
- create(DataKey) - Method in class net.citizensnpcs.api.persistence.NamespacedKeyPersister
- create(DataKey) - Method in interface net.citizensnpcs.api.persistence.Persister
-
Creates an object instance from the given
DataKey
. - create(DataKey) - Method in class net.citizensnpcs.api.persistence.PersisterRegistry
- create(DataKey) - Method in class net.citizensnpcs.api.persistence.QuaternionfPersister
- create(DataKey) - Method in class net.citizensnpcs.api.persistence.UUIDPersister
- create(DataKey) - Method in class net.citizensnpcs.api.persistence.VectorPersister
- create(Storage) - Static method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- CREATE - Enum constant in enum net.citizensnpcs.api.event.SpawnReason
- createAnonymousNPCRegistry(NPCDataStore) - Static method in class net.citizensnpcs.api.CitizensAPI
-
Creates a new anonymous
NPCRegistry
with its own set ofNPC
s. - createAnonymousNPCRegistry(NPCDataStore) - Method in interface net.citizensnpcs.api.CitizensPlugin
- createAtOffset(Vector) - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint
-
Returns a new PathPoint at a given Vector.
- createAtOffset(Vector) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- createDisplayItem() - Method in class net.citizensnpcs.api.gui.InputMenus.Choice
- createFromLocations(NPC, List<Location>) - Static method in class net.citizensnpcs.api.ai.goals.FollowPathGoal
- createInMemoryNPCRegistry(String) - Static method in class net.citizensnpcs.api.CitizensAPI
-
Creates a new
NPCRegistry
with its own set ofNPC
s that does not save to disk. - createInventory(String) - Method in class net.citizensnpcs.api.gui.InventoryMenuPage
- createNamedNPCRegistry(String, NPCDataStore) - Static method in class net.citizensnpcs.api.CitizensAPI
-
Creates a new
NPCRegistry
with its own set ofNPC
s. - createNamedNPCRegistry(String, NPCDataStore) - Method in interface net.citizensnpcs.api.CitizensPlugin
- createNPC(EntityType, String) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Creates an despawned
NPC
. - createNPC(EntityType, String, Location) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Creates an spawned
NPC
at the given location. - createNPC(EntityType, UUID, int, String) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Creates an
NPC
with the given id. - createNPCUsingItem(EntityType, String, ItemStack) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Creates an despawned
NPC
using the given ItemStack to configure it if possible. - createRegistry(Class<?>) - Static method in class net.citizensnpcs.api.persistence.PersistenceLoader
- createRelativeKey(String) - Method in class net.citizensnpcs.api.util.DataKey
- createRetryingSequence(Collection<Behavior>) - Static method in class net.citizensnpcs.api.ai.tree.Sequence
-
Creates a
retrying
sequence that will continue from the currentBehavior
if it returnsBehaviorStatus.FAILURE
instead of propagating the failure up to its parent. - createRetryingSequence(Behavior...) - Static method in class net.citizensnpcs.api.ai.tree.Sequence
- createSelfRegistered(Class<? extends InventoryMenuPage>) - Static method in class net.citizensnpcs.api.gui.InventoryMenu
-
Creates an inventory menu instance starting at the given page that registers events and deregisters events when the menu is closed.
- createSelfRegistered(InventoryMenuPage) - Static method in class net.citizensnpcs.api.gui.InventoryMenu
-
Creates an inventory menu instance starting at the given page that registers events and deregisters events when the menu is closed.
- createSequence(Collection<Behavior>) - Static method in class net.citizensnpcs.api.ai.tree.Sequence
-
Creates sequence that will stop executing if the current
Behavior
returnsBehaviorStatus.FAILURE
. - createSequence(Behavior...) - Static method in class net.citizensnpcs.api.ai.tree.Sequence
- createUniqueNPCId(NPCRegistry) - Method in class net.citizensnpcs.api.npc.MemoryNPCDataStore
- createUniqueNPCId(NPCRegistry) - Method in interface net.citizensnpcs.api.npc.NPCDataStore
- createUniqueNPCId(NPCRegistry) - Method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- createWithCondition(Behavior, Condition) - Static method in class net.citizensnpcs.api.ai.tree.Loop
- createWithContext(Class<? extends InventoryMenuPage>, Map<String, Object>) - Static method in class net.citizensnpcs.api.gui.InventoryMenu
-
Create an inventory menu instance starting at the given page and with the initial context.
- createWithDefaultStorage() - Static method in class net.citizensnpcs.api.astar.AStarMachine
-
Creates an AStarMachine using
SimpleAStarStorage
as the storage backend. - createWithRadius(Iterable<NPC>, double) - Static method in class net.citizensnpcs.api.ai.flocking.GroupNPCFlock
- createWithStorage(Supplier<AStarStorage>) - Static method in class net.citizensnpcs.api.astar.AStarMachine
-
Creates an AStarMachine that uses the given
to createAStarStorage
instances.
D
- DAMAGE_OTHERS - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC can damage other Entities.
- data() - Method in class net.citizensnpcs.api.gui.MenuContext
- data() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- data() - Method in interface net.citizensnpcs.api.npc.NPC
- DataKey - Class in net.citizensnpcs.api.util
-
A hierarchical abstract storage class.
- DataKey(String) - Constructor for class net.citizensnpcs.api.util.DataKey
- DEATH - Enum constant in enum net.citizensnpcs.api.event.DespawnReason
- DEATH_SOUND - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Minecraft sound played when the NPC dies.
- debug() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Returns whether this path will be debugged.
- debug(boolean) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets whether the path should be debugged.
- debug(Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- Decorator - Class in net.citizensnpcs.api.ai.tree
-
A decorator is a wrapper over a
Behavior
, which can add functionality such as filteringBehaviorStatus
es, conditions, timer loops and more without knowing the internals of the behavior it wraps. - Decorator.Builder - Class in net.citizensnpcs.api.ai.tree
- DEFAULT_PROTECTED - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC is 'protected' i.e.
- defaultAttackStrategy() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Returns the configured default attack strategy, which tries to perform the most Minecraft-like attack on the target.
- defaultAttackStrategy(AttackStrategy) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the default
AttackStrategy
. - defValue() - Element in annotation type net.citizensnpcs.api.command.Arg
- defValue() - Element in annotation type net.citizensnpcs.api.command.Flag
- delay(int) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
- DelegatePersistence - Annotation Type in net.citizensnpcs.api.persistence
-
Delegates persistence to a given
Persister
, which will be used to create and save instances. - DENYLIST - Enum constant in enum net.citizensnpcs.api.trait.trait.PlayerFilter.Mode
- deregister(NPC) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Deregisters the
NPC
and removes all data about it from the data store. - deregisterAll() - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Deregisters all
NPC
s from this registry. - deregisterTrait(TraitInfo) - Method in interface net.citizensnpcs.api.trait.TraitFactory
-
Removes a trait.
- desc() - Element in annotation type net.citizensnpcs.api.command.Command
-
A short description of the command that will be displayed with the command usage and help.
- deselect(CommandSender) - Method in interface net.citizensnpcs.api.npc.NPCSelector
- despawn() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- despawn() - Method in interface net.citizensnpcs.api.npc.NPC
-
Despawns this NPC.
- despawn(DespawnReason) - Method in interface net.citizensnpcs.api.npc.NPC
-
Despawns this NPC.
- despawnNPCs(DespawnReason) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Despawn all NPCs within the registry.
- DespawnReason - Enum in net.citizensnpcs.api.event
- destinationPicker(Function<NPC, Location>) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
- destinationTeleportMargin() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- destinationTeleportMargin(double) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the distance (in blocks) after which the NPC will directly teleport to the destination or -1 if disabled.
- destroy() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- destroy() - Method in interface net.citizensnpcs.api.npc.NPC
-
Permanently removes this NPC and all data about it from the registry it's attached to.
- destroy(CommandSender) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- destroy(CommandSender) - Method in interface net.citizensnpcs.api.npc.NPC
-
Permanently removes this NPC and all data about it from the registry it's attached to.
- DESTROYED - Enum constant in enum net.citizensnpcs.api.util.RemoveReason
- dimensions() - Element in annotation type net.citizensnpcs.api.gui.Menu
-
The dimensions of the menu, if supported.
- Direction - Enum in net.citizensnpcs.api.hpastar
- DISABLE_DEFAULT_STUCK_ACTION - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to disable the default stuck action (teleport to destination is default).
- distance(VectorNode) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- distance(HPAGraphNode) - Method in class net.citizensnpcs.api.hpastar.HPAGraphNode
- distanceMargin() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Returns the distance margin or leeway that the
Navigator
will be able to stop from the target destination. - distanceMargin(double) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the distance margin.
- DoorExaminer - Class in net.citizensnpcs.api.astar.pathfinder
- DoorExaminer() - Constructor for class net.citizensnpcs.api.astar.pathfinder.DoorExaminer
- DROPS_ITEMS - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC drops its inventory after death.
E
- EAST - Enum constant in enum net.citizensnpcs.api.hpastar.Direction
- Empty - Class in net.citizensnpcs.api.ai.tree
-
An empty leaf
Behavior
. - EMPTY - Static variable in class net.citizensnpcs.api.util.BoundingBox
- EMPTY_CONFIG - Static variable in class net.citizensnpcs.api.npc.BlockBreaker
- enablePageSwitcher() - Method in class net.citizensnpcs.api.util.Paginator
- enablePageSwitcher(String) - Method in class net.citizensnpcs.api.util.Paginator
- ENTITY - Enum constant in enum net.citizensnpcs.api.ai.TargetType
- EntityDim - Class in net.citizensnpcs.api.util
- EntityDim(double, double) - Constructor for class net.citizensnpcs.api.util.EntityDim
- EntityDim(float, float) - Constructor for class net.citizensnpcs.api.util.EntityDim
- EntityTarget - Interface in net.citizensnpcs.api.ai
- entityTargetLocationMapper() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Gets the target location mapper.
- entityTargetLocationMapper(Function<Entity, Location>) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Set the target location mapper.
- EntityTargetNPCEvent - Class in net.citizensnpcs.api.event
- EntityTargetNPCEvent(EntityTargetEvent, NPC) - Constructor for class net.citizensnpcs.api.event.EntityTargetNPCEvent
- equals(Object) - Method in class net.citizensnpcs.api.ai.SimpleGoalEntry
- equals(Object) - Method in class net.citizensnpcs.api.ai.tree.ForwardingBehaviorGoalAdapter
- equals(Object) - Method in class net.citizensnpcs.api.astar.AStarNode
- equals(Object) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- equals(Object) - Method in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- equals(Object) - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- equals(Object) - Method in class net.citizensnpcs.api.hpastar.ClusterNode
- equals(Object) - Method in class net.citizensnpcs.api.hpastar.HPAGraphAStarNode
- equals(Object) - Method in class net.citizensnpcs.api.hpastar.HPAGraphNode
- equals(Object) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- equals(Object) - Method in class net.citizensnpcs.api.util.BoundingBox
- equals(Object) - Method in class net.citizensnpcs.api.util.DataKey
- equals(Object) - Method in class net.citizensnpcs.api.util.EntityDim
- equals(Object) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- equals(Object) - Method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- equals(Object) - Method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- equals(Object) - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- equals(Object) - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- equals(Object) - Method in class net.citizensnpcs.api.util.SpigotUtil.InventoryViewAPI
- equals(Object) - Method in class net.citizensnpcs.api.util.YamlStorage
- equals(Object) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists
- equals(Object) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- Equipment - Class in net.citizensnpcs.api.trait.trait
-
Represents an NPC's equipment.
- Equipment() - Constructor for class net.citizensnpcs.api.trait.trait.Equipment
- Equipment.EquipmentSlot - Enum in net.citizensnpcs.api.trait.trait
- EulerAnglePersister - Class in net.citizensnpcs.api.persistence
- EulerAnglePersister() - Constructor for class net.citizensnpcs.api.persistence.EulerAnglePersister
- examiner(BlockExaminer) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Adds the given
BlockExaminer
. - examiners() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Gets a copy of all current
BlockExaminer
s. - excludedTypes() - Element in annotation type net.citizensnpcs.api.command.Requirements
- execute(Command, String[], CommandSender, Object...) - Method in class net.citizensnpcs.api.command.CommandManager
-
Attempt to execute a command using the root
Command
given. - executeSafe(Command, String[], CommandSender, Object...) - Method in class net.citizensnpcs.api.command.CommandManager
-
A safe version of
CommandManager.execute(org.bukkit.command.Command, String[], CommandSender, Object...)
which catches and logs allException
s that occur. - eyeHeight - Variable in class net.citizensnpcs.api.util.EyeHeightBoundingBox
- EyeHeightBoundingBox - Class in net.citizensnpcs.api.util
- EyeHeightBoundingBox(double, double, double, double, double, double, double) - Constructor for class net.citizensnpcs.api.util.EyeHeightBoundingBox
F
- faceLocation(Location) - Method in interface net.citizensnpcs.api.npc.NPC
-
Faces a given
Location
if the NPC is spawned. - FACTORY - Static variable in class net.citizensnpcs.api.astar.SimpleAStarStorage
- FAILURE - Enum constant in enum net.citizensnpcs.api.ai.tree.BehaviorStatus
-
Indicates that the
Behavior
has failed unrecoverably. - FileStorage - Interface in net.citizensnpcs.api.util
- filter() - Element in annotation type net.citizensnpcs.api.gui.ClickHandler
-
An optional filter for specific actions.
- filter() - Element in annotation type net.citizensnpcs.api.gui.Menu
-
The click types to allow by default.
- filter() - Element in annotation type net.citizensnpcs.api.gui.MenuTransition
-
Whitelist the allowed clicktypes for transition (empty = all allowed).
- filter(Function<Block, Boolean>) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
- filteredStringSetter(Supplier<String>, Function<String, Boolean>) - Static method in class net.citizensnpcs.api.gui.InputMenus
- filterToVisiblePlayers(Entity, Iterable<Player>) - Method in class net.citizensnpcs.api.LocationLookup
- findPath(Location, Location) - Method in class net.citizensnpcs.api.hpastar.HPAGraph
- findRandomValidLocation(Location, int, int) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- findRandomValidLocation(Location, int, int, Function<Block, Boolean>) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- findRandomValidLocation(Location, int, int, Function<Block, Boolean>, Random) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- findValidLocation(Location, int) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- findValidLocation(Location, int, int) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- findValidLocation(Location, int, int, Function<Block, Boolean>) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- findValidLocationAbove(Location, int) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- finish() - Method in interface net.citizensnpcs.api.ai.GoalSelector
-
Stops executing any currently running
Goal
s and allows other goals to be selected for execution. - finish() - Method in class net.citizensnpcs.api.ai.SimpleGoalController.SimpleGoalSelector
- finishAndRemove() - Method in interface net.citizensnpcs.api.ai.GoalSelector
-
Calls
GoalSelector.finish()
and removes theGoal
from the list of possible goals to execute. - finishAndRemove() - Method in class net.citizensnpcs.api.ai.SimpleGoalController.SimpleGoalSelector
- Flag - Annotation Type in net.citizensnpcs.api.command
- flags - Variable in class net.citizensnpcs.api.command.CommandContext
- flags() - Element in annotation type net.citizensnpcs.api.command.Command
-
Defines the flags available for this command.
- FlockBehavior - Interface in net.citizensnpcs.api.ai.flocking
-
An interface to be used with an
Flocker
to represent a certain type of behavior such as cohesion, alignment or separation. - Flocker - Class in net.citizensnpcs.api.ai.flocking
-
Implements a simple flocking controller as a
Runnable
. - Flocker(NPC, NPCFlock, FlockBehavior...) - Constructor for class net.citizensnpcs.api.ai.flocking.Flocker
- FLUID_PUSHABLE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC is pushable by fluids.
- FLYABLE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC is 'flyable' i.e.
- FlyingBlockExaminer - Class in net.citizensnpcs.api.astar.pathfinder
- FlyingBlockExaminer() - Constructor for class net.citizensnpcs.api.astar.pathfinder.FlyingBlockExaminer
- FollowPathGoal - Class in net.citizensnpcs.api.ai.goals
- FollowPathGoal(NPC, List<MoveToGoal>) - Constructor for class net.citizensnpcs.api.ai.goals.FollowPathGoal
- FORCE_PACKET_UPDATE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Forces a singular packet update.
- format(String, Object...) - Static method in class net.citizensnpcs.api.util.Translator
- ForwardingBehaviorGoalAdapter - Class in net.citizensnpcs.api.ai.tree
-
Forwards all calls to a secondary
Behavior
. - ForwardingBehaviorGoalAdapter(Behavior) - Constructor for class net.citizensnpcs.api.ai.tree.ForwardingBehaviorGoalAdapter
- ForwardingInventory - Interface in net.citizensnpcs.api.gui
- FrogVariantEnum(Frog.Variant) - Constructor for class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- from(BoundingBox) - Static method in class net.citizensnpcs.api.util.EntityDim
- from(Entity) - Static method in class net.citizensnpcs.api.util.EntityDim
G
- g(VectorNode, VectorNode) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorGoal
- g(T, T) - Method in interface net.citizensnpcs.api.astar.AStarGoal
-
Returns the cost of moving between the two supplied
AStarNode
s. - generateLoaderMap() - Method in class net.citizensnpcs.api.LocationLookup.AsyncPhTreeLoader
- generateTemplateFromNPC(NamespacedKey, NPC) - Method in class net.citizensnpcs.api.npc.templates.TemplateRegistry
- get() - Method in interface net.citizensnpcs.api.ai.tree.Condition
- get(int) - Method in class net.citizensnpcs.api.trait.trait.Equipment
-
Get an NPC's equipment from the given slot.
- get(String) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Fetches metadata from the given key.
- get(String) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- get(String, T) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Fetches metadata from the given key.
- get(String, T) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- get(NPC.Metadata) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Fetches metadata from the given key.
- get(NPC.Metadata) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- get(NPC.Metadata, T) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Fetches metadata from the given key.
- get(NPC.Metadata, T) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- get(Equipment.EquipmentSlot) - Method in class net.citizensnpcs.api.trait.trait.Equipment
- getAction() - Method in class net.citizensnpcs.api.ai.event.NavigationStuckEvent
- getAllTemplates() - Method in class net.citizensnpcs.api.npc.templates.TemplateRegistry
- getAnnotationClass() - Method in interface net.citizensnpcs.api.command.CommandAnnotationProcessor
- getAnnotationClass() - Method in class net.citizensnpcs.api.command.RequirementsProcessor
- getApplyRange() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- getArgTabCompletions(CommandContext, CommandSender, int) - Method in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- getBehavior() - Method in interface net.citizensnpcs.api.ai.GoalController.GoalEntry
- getBehavior() - Method in class net.citizensnpcs.api.ai.SimpleGoalEntry
- getBehaviors() - Method in class net.citizensnpcs.api.ai.tree.Composite
- getBestNode() - Method in class net.citizensnpcs.api.astar.AStarMachine.AStarState
- getBestNode() - Method in interface net.citizensnpcs.api.astar.AStarStorage
- getBestNode() - Method in class net.citizensnpcs.api.astar.SimpleAStarStorage
- getBlockAt(int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.BlockSource
- getBlockAt(Vector) - Method in class net.citizensnpcs.api.astar.pathfinder.BlockSource
- getBlockBreaker(Block, BlockBreaker.BlockBreakerConfiguration) - Method in interface net.citizensnpcs.api.npc.NPC
-
Creates a
BlockBreaker
that allows you to break blocks using the Minecraft breaking algorithm. - getBlocks(World) - Method in class net.citizensnpcs.api.astar.pathfinder.Path
- getBoolean(String) - Method in class net.citizensnpcs.api.util.DataKey
- getBoolean(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getBoolean(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getBoolean(String, boolean) - Method in class net.citizensnpcs.api.util.DataKey
- getBoolean(String, boolean) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getBoolean(String, boolean) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getById(int) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Gets the
NPC
with the given ID if it exists. - getByUniqueId(UUID) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Gets the
NPC
with the given unique ID if it exists. - getByUniqueIdGlobal(UUID) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Gets the
NPC
with the given unique ID if it exists, otherwise null. - getCancelReason() - Method in class net.citizensnpcs.api.ai.AbstractPathStrategy
- getCancelReason() - Method in class net.citizensnpcs.api.ai.event.NavigationCancelEvent
- getCancelReason() - Method in interface net.citizensnpcs.api.ai.PathStrategy
- getCancelReason() - Method in class net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
- getCause() - Method in class net.citizensnpcs.api.event.NPCDamageEvent
- getCenter() - Method in class net.citizensnpcs.api.util.EyeHeightBoundingBox
- getChunkObject(int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.AsyncChunkSnapshotBlockSource
- getChunkObject(int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- getChunkObject(int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource
- getChunkObject(int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.ChunkSnapshotBlockSource
- getClicker() - Method in class net.citizensnpcs.api.event.NPCClickEvent
-
Gets the player that clicked the NPC.
- getClickHandlers() - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- getClone() - Method in class net.citizensnpcs.api.event.NPCCloneEvent
- getClosestCommandModifier(String, String) - Method in class net.citizensnpcs.api.command.CommandManager
-
Searches for the closest modifier using Levenshtein distance to the given top level command and modifier.
- getCollidedWith() - Method in class net.citizensnpcs.api.event.NPCCollisionEvent
- getCollisionBox(int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.BlockSource
- getCollisionBox(int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- getCollisionBox(Chunk, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource
- getCollisionBox(ChunkSnapshot, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.AsyncChunkSnapshotBlockSource
- getCollisionBox(ChunkSnapshot, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.ChunkSnapshotBlockSource
- getCollisionBox(Vector) - Method in class net.citizensnpcs.api.astar.pathfinder.BlockSource
- getCollisionBox(T, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- getCollisionVector() - Method in class net.citizensnpcs.api.event.NPCPushEvent
-
Return the collision
Vector
being applied to the NPC. - getCombuster() - Method in class net.citizensnpcs.api.event.NPCCombustByBlockEvent
-
The combuster can be lava or a block that is on fire.
- getCombuster() - Method in class net.citizensnpcs.api.event.NPCCombustByEntityEvent
-
The combuster can be a WeatherStorm a Blaze, or an Entity holding a FIRE_ASPECT enchanted item.
- getCommand() - Method in class net.citizensnpcs.api.command.CommandContext
- getCommand(String...) - Method in class net.citizensnpcs.api.command.CommandManager
-
Gets the
CommandManager.CommandInfo
for the given command parts, ornull
if not found. - getCommandAnnotation() - Method in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- getCommandManager() - Static method in class net.citizensnpcs.api.CitizensAPI
- getCommandManager() - Method in interface net.citizensnpcs.api.CitizensPlugin
- getCommands(String) - Method in class net.citizensnpcs.api.command.CommandManager
-
Gets all modified and root commands from the given root level command.
- getCommandSender() - Method in class net.citizensnpcs.api.event.NPCTraitCommandAttachEvent
- getCommandSender() - Method in class net.citizensnpcs.api.event.NPCTraitCommandDetachEvent
- getCompletions(CommandContext, CommandSender, NPC) - Method in interface net.citizensnpcs.api.command.Arg.CompletionsProvider
- getCompletions(CommandContext, CommandSender, NPC) - Method in class net.citizensnpcs.api.command.Arg.CompletionsProvider.Identity
- getCompletions(CommandContext, CommandSender, NPC) - Method in class net.citizensnpcs.api.command.Arg.CompletionsProvider.OptionalEnumCompletions
- getContents() - Method in class net.citizensnpcs.api.trait.trait.Inventory
-
Gets the contents of an NPC's inventory.
- getContext() - Method in class net.citizensnpcs.api.ai.speech.event.NPCSpeechEvent
- getContext() - Method in class net.citizensnpcs.api.ai.speech.event.SpeechEvent
-
Gets the
SpeechContext
associated with the SpeechEvent. - getCosmetic(Equipment.EquipmentSlot) - Method in class net.citizensnpcs.api.trait.trait.Equipment
-
Gets the NPC's cosmetic equipment from the given slot.
- getCost(BlockSource, PathPoint) - Method in interface net.citizensnpcs.api.astar.pathfinder.BlockExaminer
- getCost(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.DoorExaminer
- getCost(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.FlyingBlockExaminer
- getCost(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- getCost(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.SwimmingExaminer
- getCreator() - Method in class net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
- getCreator() - Method in class net.citizensnpcs.api.event.PlayerCloneNPCEvent
- getCreator() - Method in class net.citizensnpcs.api.event.PlayerCreateNPCEvent
- getCurrentDestination() - Method in interface net.citizensnpcs.api.ai.PathStrategy
- getCurrentItem() - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- getCurrentItem() - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- getCurrentItemNonNull() - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- getCurrentVector() - Method in class net.citizensnpcs.api.astar.pathfinder.Path
- getCursor() - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- getCursorNonNull() - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- getDamage() - Method in class net.citizensnpcs.api.event.NPCDamageEvent
- getDamaged() - Method in class net.citizensnpcs.api.event.NPCDamageEntityEvent
- getDamager() - Method in class net.citizensnpcs.api.event.NPCDamageByBlockEvent
- getDamager() - Method in class net.citizensnpcs.api.event.NPCDamageByEntityEvent
- getDamager() - Method in class net.citizensnpcs.api.event.NPCVehicleDamageEvent
- getDataFolder() - Static method in class net.citizensnpcs.api.CitizensAPI
- getDefaultGoalController() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getDefaultGoalController() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the default
GoalController
of this NPC. - getDefaultNPCSelector() - Static method in class net.citizensnpcs.api.CitizensAPI
- getDefaultNPCSelector() - Method in interface net.citizensnpcs.api.CitizensPlugin
- getDefaultParameters() - Method in interface net.citizensnpcs.api.ai.Navigator
-
Returns the
NavigatorParameters
local to this navigator. - getDefaultSpeechController() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getDefaultSpeechController() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the default
SpeechController
of this NPC. - getDescription() - Method in class net.citizensnpcs.api.gui.InputMenus.Choice
- getDisplayMaterial() - Method in class net.citizensnpcs.api.gui.InputMenus.Choice
- getDoor() - Method in class net.citizensnpcs.api.event.NPCOpenDoorEvent
-
Returns the
Block
that was opened. - getDouble(int) - Method in class net.citizensnpcs.api.command.CommandContext
- getDouble(int, double) - Method in class net.citizensnpcs.api.command.CommandContext
- getDouble(String) - Method in class net.citizensnpcs.api.util.DataKey
- getDouble(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getDouble(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getDouble(String, double) - Method in class net.citizensnpcs.api.util.DataKey
- getDouble(String, double) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getDouble(String, double) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getDroppedExp() - Method in class net.citizensnpcs.api.event.NPCDeathEvent
- getDrops() - Method in class net.citizensnpcs.api.event.NPCDeathEvent
- getEdges(int) - Method in class net.citizensnpcs.api.hpastar.HPAGraphNode
- getEntity() - Method in interface net.citizensnpcs.api.ai.speech.Talkable
-
Gets the LivingEntity associated with this Talkable
- getEntity() - Method in class net.citizensnpcs.api.ai.speech.TalkableEntity
- getEntity() - Method in class net.citizensnpcs.api.event.EntityTargetNPCEvent
-
Returns the Entity involved in this event
- getEntity() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the Bukkit entity associated with this NPC.
- getEntityTarget() - Method in interface net.citizensnpcs.api.ai.Navigator
-
Returns the current
EntityTarget
of the navigator, if any. - getEntityType() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getEnumClassName() - Method in class net.citizensnpcs.api.command.Arg.CompletionsProvider.OptionalEnumCompletions
- getEquipment() - Method in class net.citizensnpcs.api.trait.trait.Equipment
-
Get all of an NPC's equipment.
- getEquipmentBySlot() - Method in class net.citizensnpcs.api.trait.trait.Equipment
-
Get all of the equipment as a
Map
. - getEvent() - Method in class net.citizensnpcs.api.event.NPCDamageEvent
- getEvent() - Method in class net.citizensnpcs.api.event.NPCDeathEvent
- getEvent() - Method in class net.citizensnpcs.api.event.NPCVehicleDamageEvent
- getFile() - Method in interface net.citizensnpcs.api.util.FileStorage
- getFile(String) - Method in class net.citizensnpcs.api.npc.templates.TemplateWorkspace
- getFilter() - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- getFlag(String) - Method in class net.citizensnpcs.api.command.CommandContext
- getFlag(String, String) - Method in class net.citizensnpcs.api.command.CommandContext
- getFlagDouble(String) - Method in class net.citizensnpcs.api.command.CommandContext
- getFlagDouble(String, double) - Method in class net.citizensnpcs.api.command.CommandContext
- getFlagInteger(String) - Method in class net.citizensnpcs.api.command.CommandContext
- getFlagInteger(String, int) - Method in class net.citizensnpcs.api.command.CommandContext
- getFlags() - Method in class net.citizensnpcs.api.command.CommandContext
- getFlagTabCompletions(CommandContext, CommandSender, String) - Method in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- getFlagTicks(String) - Method in class net.citizensnpcs.api.command.CommandContext
- getFlagTicks(String, int) - Method in class net.citizensnpcs.api.command.CommandContext
- getFrom() - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- getFrom() - Method in class net.citizensnpcs.api.event.NPCTeleportEvent
- getFromRoot(String) - Method in class net.citizensnpcs.api.util.DataKey
- getFromRoot(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getFromRoot(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getFullName() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getFullName() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the full name of this NPC.
- getGate() - Method in class net.citizensnpcs.api.event.NPCOpenGateEvent
-
Returns the
Block
that was opened. - getGoal() - Method in interface net.citizensnpcs.api.ai.GoalController.GoalEntry
- getGoal() - Method in class net.citizensnpcs.api.ai.SimpleGoalEntry
- getGoal() - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint
-
Gets the destination Vector
- getGoal() - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- getGoalVector() - Method in class net.citizensnpcs.api.astar.pathfinder.VectorGoal
- getGroups() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Implementation detail: may change in the future.
- getHandle() - Method in class net.citizensnpcs.api.event.NPCCombustEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.ai.event.NavigationBeginEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.ai.event.NavigationCancelEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.ai.event.NavigationCompleteEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.ai.event.NavigationReplaceEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.ai.event.NavigationStuckEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.ai.speech.event.NPCSpeechEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.ai.speech.event.SpeechEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CitizensDeserialiseMetaEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CitizensDisableEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CitizensEnableEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CitizensGetSelectedNPCEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CitizensPreReloadEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CitizensReloadEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CitizensSerialiseMetaEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CommandSenderCloneNPCEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.EntityTargetNPCEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCAddTraitEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCClickEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCCloneEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCCollisionEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCCombustByBlockEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCCombustByEntityEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCCombustEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCCommandDispatchEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCCreateEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCDamageByBlockEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCDamageByEntityEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCDamageEntityEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCDamageEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCDeathEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCDespawnEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCKnockbackEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCLeftClickEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCLinkToPlayerEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCLookCloseChangeTargetEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCMoveEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCOpenDoorEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCOpenGateEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCPistonPushEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCPushEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCRemoveByCommandSenderEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCRemoveEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCRemoveTraitEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCRenameEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCRightClickEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCSeenByPlayerEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCSelectEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCSpawnEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCTeleportEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCTraitCommandAttachEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCTraitCommandDetachEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCUnlinkFromPlayerEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.NPCVehicleDamageEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.PlayerCloneNPCEvent
- getHandlerList() - Static method in class net.citizensnpcs.api.event.PlayerCreateNPCEvent
- getHandlers() - Method in class net.citizensnpcs.api.ai.event.NavigationBeginEvent
- getHandlers() - Method in class net.citizensnpcs.api.ai.event.NavigationCancelEvent
- getHandlers() - Method in class net.citizensnpcs.api.ai.event.NavigationCompleteEvent
- getHandlers() - Method in class net.citizensnpcs.api.ai.event.NavigationReplaceEvent
- getHandlers() - Method in class net.citizensnpcs.api.ai.event.NavigationStuckEvent
- getHandlers() - Method in class net.citizensnpcs.api.ai.speech.event.NPCSpeechEvent
- getHandlers() - Method in class net.citizensnpcs.api.ai.speech.event.SpeechEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CitizensDeserialiseMetaEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CitizensDisableEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CitizensEnableEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CitizensGetSelectedNPCEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CitizensPreReloadEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CitizensReloadEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CitizensSerialiseMetaEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CommandSenderCloneNPCEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.EntityTargetNPCEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCAddTraitEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCClickEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCCloneEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCCollisionEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCCombustByBlockEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCCombustByEntityEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCCombustEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCCommandDispatchEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCCreateEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCDamageByBlockEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCDamageByEntityEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCDamageEntityEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCDamageEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCDeathEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCDespawnEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCKnockbackEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCLeftClickEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCLinkToPlayerEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCLookCloseChangeTargetEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCOpenDoorEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCOpenGateEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCPistonPushEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCPushEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCRemoveByCommandSenderEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCRemoveEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCRemoveTraitEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCRenameEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCRightClickEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCSeenByPlayerEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCSelectEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCSpawnEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCTeleportEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCTraitCommandAttachEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCTraitCommandDetachEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCUnlinkFromPlayerEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.NPCVehicleDamageEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.PlayerCloneNPCEvent
- getHandlers() - Method in class net.citizensnpcs.api.event.PlayerCreateNPCEvent
- getId() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getId() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the unique ID of this NPC.
- getInitialCost(VectorNode) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorGoal
- getInitialCost(T) - Method in interface net.citizensnpcs.api.astar.AStarGoal
-
Returns the initial cost value when starting from the supplied
AStarNode
. - getInstance() - Method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- getInstance() - Method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- getInstance() - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- getInstance() - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- getInstance(Class<?>) - Method in class net.citizensnpcs.api.command.Injector
- getInt(String) - Method in class net.citizensnpcs.api.util.DataKey
- getInt(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getInt(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getInt(String, int) - Method in class net.citizensnpcs.api.util.DataKey
- getInt(String, int) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getInt(String, int) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getInteger(int) - Method in class net.citizensnpcs.api.command.CommandContext
- getInteger(int, int) - Method in class net.citizensnpcs.api.command.CommandContext
- getIntegerSubKeys() - Method in class net.citizensnpcs.api.util.DataKey
- getIntegerSubKeys() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getInventory() - Method in class net.citizensnpcs.api.gui.MenuContext
- getInventoryView() - Method in class net.citizensnpcs.api.trait.trait.Inventory
- getItemProvider() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getItemProvider() - Method in interface net.citizensnpcs.api.npc.NPC
- getItemStack() - Method in class net.citizensnpcs.api.event.CitizensDeserialiseMetaEvent
- getJoinedStrings(int) - Method in class net.citizensnpcs.api.command.CommandContext
- getJoinedStrings(int, char) - Method in class net.citizensnpcs.api.command.CommandContext
- getKey() - Method in class net.citizensnpcs.api.event.CitizensDeserialiseMetaEvent
- getKey() - Method in class net.citizensnpcs.api.event.CitizensSerialiseMetaEvent
- getKey() - Method in enum net.citizensnpcs.api.npc.NPC.Metadata
- getKey() - Method in class net.citizensnpcs.api.npc.templates.Template
- getKey(String) - Static method in class net.citizensnpcs.api.util.SpigotUtil
- getKey(String) - Method in interface net.citizensnpcs.api.util.Storage
-
Returns a
DataKey
starting from the given root. - getKey(String) - Method in class net.citizensnpcs.api.util.YamlStorage
- getKey(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists
- getKey(String, String) - Static method in class net.citizensnpcs.api.util.SpigotUtil
- getKnockbackVector() - Method in class net.citizensnpcs.api.event.NPCKnockbackEvent
- getKnockingBackEntity() - Method in class net.citizensnpcs.api.event.NPCKnockbackEvent
- getLightLevel(Chunk, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource
- getLightLevel(ChunkSnapshot, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.AsyncChunkSnapshotBlockSource
- getLightLevel(ChunkSnapshot, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.ChunkSnapshotBlockSource
- getLightLevel(T, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- getLocalParameters() - Method in interface net.citizensnpcs.api.ai.Navigator
-
Returns the
NavigatorParameters
local to any current target execution. - getLocation() - Method in class net.citizensnpcs.api.event.NPCSpawnEvent
-
Gets the location where the NPC was spawned.
- getLocationLookup() - Static method in class net.citizensnpcs.api.CitizensAPI
- getLocationLookup() - Method in interface net.citizensnpcs.api.CitizensPlugin
-
Gets the Citizens
LocationLookup
- getLong(String) - Method in class net.citizensnpcs.api.util.DataKey
- getLong(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getLong(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getLong(String, long) - Method in class net.citizensnpcs.api.util.DataKey
- getLong(String, long) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getLong(String, long) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getMarker(UUID, String) - Method in class net.citizensnpcs.api.LocationLookup.PerPlayerMetadata
- getMaterialAt(int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.BlockSource
- getMaterialAt(int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- getMaterialAt(Vector) - Method in class net.citizensnpcs.api.astar.pathfinder.BlockSource
- getMaxNameLength(EntityType) - Static method in class net.citizensnpcs.api.util.SpigotUtil
- getMenu() - Method in class net.citizensnpcs.api.gui.MenuContext
- getMessage() - Method in class net.citizensnpcs.api.ai.speech.event.SpeechEvent
-
The final message to be sent to the bystander.
- getMessage() - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
-
Gets the text message sent.
- getMeta() - Method in class net.citizensnpcs.api.event.CitizensSerialiseMetaEvent
- getMetadata(String) - Method in class net.citizensnpcs.api.LocationLookup
- getMinecraftPackage() - Static method in class net.citizensnpcs.api.util.SpigotUtil
- getMinecraftUniqueId() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getMinecraftUniqueId() - Method in interface net.citizensnpcs.api.npc.NPC
-
For certain mob types (currently, Players) it is beneficial to change the UUID slightly to signal to the client that the mob is an NPC not a real mob.
- getName() - Method in interface net.citizensnpcs.api.ai.speech.Talkable
-
Gets the name of the Talkable LivingEntity
- getName() - Method in class net.citizensnpcs.api.ai.speech.TalkableEntity
- getName() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getName() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the name of this NPC with color codes stripped.
- getName() - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Gets the name of the registry.
- getName() - Method in class net.citizensnpcs.api.trait.Trait
-
Gets the name of this trait.
- getNamedNPCRegistry(String) - Static method in class net.citizensnpcs.api.CitizensAPI
-
Retrieves the
NPCRegistry
previously created viaCitizensAPI.createNamedNPCRegistry(String, NPCDataStore)
with the given name, or null if not found. - getNamedNPCRegistry(String) - Method in interface net.citizensnpcs.api.CitizensPlugin
- getNavigator() - Method in class net.citizensnpcs.api.ai.event.NavigationEvent
- getNavigator() - Method in interface net.citizensnpcs.api.npc.NPC
- getNearby(K, double[], double[]) - Method in class net.citizensnpcs.api.LocationLookup.AsyncPhTreeLoader
- getNearby(K, double, double[]) - Method in class net.citizensnpcs.api.LocationLookup.AsyncPhTreeLoader
- getNearby(NPC) - Method in class net.citizensnpcs.api.ai.flocking.GroupNPCFlock
- getNearby(NPC) - Method in interface net.citizensnpcs.api.ai.flocking.NPCFlock
-
Returns the NPCs to be considered part of a flock.
- getNearby(NPC) - Method in class net.citizensnpcs.api.ai.flocking.RadiusNPCFlock
- getNearbyNPCs(NPC) - Method in class net.citizensnpcs.api.LocationLookup
- getNearbyNPCs(Location, double) - Method in class net.citizensnpcs.api.LocationLookup
- getNearbyNPCs(World, double[], double[]) - Method in class net.citizensnpcs.api.LocationLookup
- getNearbyPlayers(NPC) - Method in class net.citizensnpcs.api.LocationLookup
- getNearbyPlayers(Location, double) - Method in class net.citizensnpcs.api.LocationLookup
- getNearbyPlayers(World, double[], double[]) - Method in class net.citizensnpcs.api.LocationLookup
- getNearbyVisiblePlayers(Entity, double) - Method in class net.citizensnpcs.api.LocationLookup
- getNearbyVisiblePlayers(Entity, double[], double[]) - Method in class net.citizensnpcs.api.LocationLookup
- getNearbyVisiblePlayers(Entity, Location, double) - Method in class net.citizensnpcs.api.LocationLookup
- getNeighbours() - Method in class net.citizensnpcs.api.astar.AStarNode
- getNeighbours() - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- getNeighbours(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.FlyingBlockExaminer
- getNeighbours(BlockSource, PathPoint) - Method in interface net.citizensnpcs.api.astar.pathfinder.NeighbourGeneratorBlockExaminer
- getNeighbours(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- getNeighbours(BlockSource, PathPoint, boolean) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- getNewName() - Method in class net.citizensnpcs.api.event.NPCRenameEvent
- getNewTarget() - Method in class net.citizensnpcs.api.event.NPCLookCloseChangeTargetEvent
- getNextBehavior() - Method in class net.citizensnpcs.api.ai.tree.Selector
- getNMSHelper() - Static method in class net.citizensnpcs.api.CitizensAPI
- getNMSHelper() - Method in interface net.citizensnpcs.api.CitizensPlugin
- getNPC() - Method in class net.citizensnpcs.api.ai.event.NavigationEvent
- getNPC() - Method in interface net.citizensnpcs.api.ai.Navigator
- getNPC() - Method in class net.citizensnpcs.api.event.NPCEvent
-
Get the npc involved in the event.
- getNPC() - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- getNPC() - Method in class net.citizensnpcs.api.trait.Trait
- getNPC(Entity) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
- getNPCRegistries() - Static method in class net.citizensnpcs.api.CitizensAPI
- getNPCRegistries() - Method in interface net.citizensnpcs.api.CitizensPlugin
-
Get all registered
NPCRegistry
s. - getNPCRegistry() - Static method in class net.citizensnpcs.api.CitizensAPI
-
Gets the current implementation's default
NPCRegistry
. - getNPCRegistry() - Method in interface net.citizensnpcs.api.CitizensPlugin
-
Gets the default
NPCRegistry
. - getNPCs() - Method in class net.citizensnpcs.api.ai.flocking.GroupNPCFlock
- getOldName() - Method in class net.citizensnpcs.api.event.NPCRenameEvent
- getOrAddTrait(Class<T>) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getOrAddTrait(Class<T>) - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets a trait from the given class.
- getOriginal() - Method in class net.citizensnpcs.api.event.CommandSenderCloneNPCEvent
- getOriginal() - Method in class net.citizensnpcs.api.event.PlayerCloneNPCEvent
- getOwner() - Method in class net.citizensnpcs.api.trait.trait.Owner
-
Deprecated.
- getOwnerId() - Method in class net.citizensnpcs.api.trait.trait.Owner
- getOwningClassLoader() - Method in interface net.citizensnpcs.api.CitizensPlugin
- getOwningRegistry() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getOwningRegistry() - Method in interface net.citizensnpcs.api.npc.NPC
- getPaddedSlice(int, int) - Method in class net.citizensnpcs.api.command.CommandContext
- getPageText(int) - Method in class net.citizensnpcs.api.util.Paginator
- getParent() - Method in class net.citizensnpcs.api.astar.AStarNode
- getParentPoint() - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint
-
Gets the parent PathPoint
- getParentPoint() - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- getPath() - Method in interface net.citizensnpcs.api.ai.PathStrategy
- getPath() - Method in class net.citizensnpcs.api.astar.pathfinder.Path
- getPath() - Method in class net.citizensnpcs.api.util.DataKey
- getPathCost() - Method in class net.citizensnpcs.api.astar.AStarNode
- getPathStrategy() - Method in interface net.citizensnpcs.api.ai.Navigator
- getPathVectors() - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint
-
Gets the list of manual path vectors
- getPathVectors() - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- getPattern() - Method in class net.citizensnpcs.api.gui.InventoryMenuPattern
- getPlayer() - Method in class net.citizensnpcs.api.event.NPCCommandDispatchEvent
- getPlayer() - Method in class net.citizensnpcs.api.event.NPCLinkToPlayerEvent
- getPlayer() - Method in class net.citizensnpcs.api.event.NPCSeenByPlayerEvent
- getPlayer() - Method in class net.citizensnpcs.api.event.NPCUnlinkFromPlayerEvent
- getPlayer() - Method in class net.citizensnpcs.api.util.SpigotUtil.InventoryViewAPI
- getPlayer(BlockCommandSender) - Method in interface net.citizensnpcs.api.NMSHelper
- getPlayerUUIDs() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Implementation detail: may change in the future.
- getPlugin() - Static method in class net.citizensnpcs.api.CitizensAPI
- getPreviousTarget() - Method in class net.citizensnpcs.api.event.NPCLookCloseChangeTargetEvent
- getPriority() - Method in interface net.citizensnpcs.api.ai.GoalController.GoalEntry
- getPriority() - Method in interface net.citizensnpcs.api.ai.PrioritisableGoal
- getPriority() - Method in class net.citizensnpcs.api.ai.SimpleGoalEntry
- getPushedBy() - Method in class net.citizensnpcs.api.event.NPCPushEvent
- getRaw(String) - Method in class net.citizensnpcs.api.util.DataKey
- getRaw(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getRaw(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getRawCommand() - Method in class net.citizensnpcs.api.command.CommandContext
- getRawName() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getRawName() - Method in interface net.citizensnpcs.api.npc.NPC
- getRawUnchecked(String) - Method in class net.citizensnpcs.api.util.DataKey
- getReason() - Method in class net.citizensnpcs.api.event.EntityTargetNPCEvent
-
Returns the reason for the targeting
- getReason() - Method in class net.citizensnpcs.api.event.NPCDespawnEvent
- getReason() - Method in class net.citizensnpcs.api.event.NPCSpawnEvent
-
Gets the reason for spawning the NPC.
- getRegisteredTraits() - Method in interface net.citizensnpcs.api.trait.TraitFactory
-
Returns all currently registered traits, including internal traits
- getRelative(int) - Method in class net.citizensnpcs.api.util.DataKey
- getRelative(String) - Method in class net.citizensnpcs.api.util.DataKey
- getRelative(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getRelative(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getResultItem() - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- getResultItemNonNull() - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- getSection(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getSelected() - Method in class net.citizensnpcs.api.event.CitizensGetSelectedNPCEvent
- getSelected(CommandSender) - Method in interface net.citizensnpcs.api.npc.NPCSelector
- getSelectionFunction() - Method in class net.citizensnpcs.api.ai.tree.Selector
- getSelector() - Method in class net.citizensnpcs.api.event.NPCSelectEvent
-
Gets the selector of the NPC.
- getSender() - Method in class net.citizensnpcs.api.event.CitizensGetSelectedNPCEvent
- getSenderLocation() - Method in class net.citizensnpcs.api.command.CommandContext
- getSenderTargetBlockLocation() - Method in class net.citizensnpcs.api.command.CommandContext
- getSlice(int) - Method in class net.citizensnpcs.api.command.CommandContext
- getSlot() - Method in class net.citizensnpcs.api.gui.InventoryMenuTransition
- getSlot(int) - Method in class net.citizensnpcs.api.gui.MenuContext
- getSlots() - Method in class net.citizensnpcs.api.gui.InventoryMenuPattern
- getSource() - Method in class net.citizensnpcs.api.event.NPCRemoveByCommandSenderEvent
- getStateFor(AStarGoal<N>, N) - Method in class net.citizensnpcs.api.astar.AStarMachine
-
Creates an
AStarMachine<N extends AStarNode,
that can be reused across multiple invocations of {P extends Plan>.AStarState AStarMachine.run(AStarState, int)
. - getStoredLocation() - Method in interface net.citizensnpcs.api.npc.NPC
-
If the NPC is not spawned, then this method will return the last known location, or null if it has never been spawned.
- getStrength() - Method in class net.citizensnpcs.api.event.NPCKnockbackEvent
- getString(int) - Method in class net.citizensnpcs.api.command.CommandContext
- getString(int, String) - Method in class net.citizensnpcs.api.command.CommandContext
- getString(String) - Method in class net.citizensnpcs.api.util.DataKey
- getString(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getString(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getString(String, String) - Method in class net.citizensnpcs.api.util.DataKey
- getSubKeys() - Method in class net.citizensnpcs.api.util.DataKey
- getSubKeys() - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getSubKeys() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getTalker() - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
-
Gets the talker.
- getTarget() - Method in interface net.citizensnpcs.api.ai.EntityTarget
- getTargetAsLocation() - Method in interface net.citizensnpcs.api.ai.Navigator
- getTargetAsLocation() - Method in interface net.citizensnpcs.api.ai.PathStrategy
- getTargetType() - Method in class net.citizensnpcs.api.ai.AbstractPathStrategy
- getTargetType() - Method in interface net.citizensnpcs.api.ai.Navigator
- getTargetType() - Method in interface net.citizensnpcs.api.ai.PathStrategy
- getTemplateByKey(NamespacedKey) - Method in class net.citizensnpcs.api.npc.templates.TemplateRegistry
- getTemplateRegistry() - Static method in class net.citizensnpcs.api.CitizensAPI
- getTemplateRegistry() - Method in interface net.citizensnpcs.api.CitizensPlugin
- getTemplates(String) - Method in class net.citizensnpcs.api.npc.templates.TemplateRegistry
- getTemporaryNPCRegistry() - Static method in class net.citizensnpcs.api.CitizensAPI
-
Gets the current implementation's default temporary
NPCRegistry
. - getTemporaryNPCRegistry() - Method in interface net.citizensnpcs.api.CitizensPlugin
- getTexture(SkullMeta) - Method in interface net.citizensnpcs.api.NMSHelper
- getTicks(int) - Method in class net.citizensnpcs.api.command.CommandContext
- getTitle() - Method in class net.citizensnpcs.api.gui.MenuContext
- getTo() - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- getTo() - Method in class net.citizensnpcs.api.event.NPCTeleportEvent
- getTopInventory() - Method in class net.citizensnpcs.api.util.SpigotUtil.InventoryViewAPI
- getTrait() - Method in class net.citizensnpcs.api.event.NPCTraitEvent
- getTrait(Class<T>) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getTrait(Class<T>) - Method in interface net.citizensnpcs.api.npc.NPC
-
Deprecated.
- getTrait(Class<T>) - Method in interface net.citizensnpcs.api.trait.TraitFactory
-
Gets a trait with the given class.
- getTrait(String) - Method in interface net.citizensnpcs.api.trait.TraitFactory
-
Gets a trait with the given name.
- getTraitClass() - Method in class net.citizensnpcs.api.event.NPCTraitCommandAttachEvent
- getTraitClass() - Method in class net.citizensnpcs.api.event.NPCTraitCommandDetachEvent
- getTraitClass() - Method in class net.citizensnpcs.api.trait.TraitInfo
- getTraitClass(String) - Method in interface net.citizensnpcs.api.trait.TraitFactory
-
Gets the
Trait
class with the given name, or null if not found. - getTraitFactory() - Static method in class net.citizensnpcs.api.CitizensAPI
-
Gets the current implementation's
TraitFactory
. - getTraitFactory() - Method in interface net.citizensnpcs.api.CitizensPlugin
-
Gets the TraitFactory.
- getTraitFor(Class<? extends Trait>) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getTraitName() - Method in class net.citizensnpcs.api.trait.TraitInfo
- getTraitNullable(Class<T>) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getTraitNullable(Class<T>) - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the trait instance with the given class.
- getTraitOptional(Class<T>) - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the trait instance with the given class.
- getTraits() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getTraits() - Method in interface net.citizensnpcs.api.npc.NPC
-
Returns the currently attached
Trait
s - getTransitions() - Method in class net.citizensnpcs.api.gui.InventoryMenuPattern
- getType() - Method in enum net.citizensnpcs.api.npc.NPC.Metadata
- getType() - Method in class net.citizensnpcs.api.trait.trait.MobType
-
Gets the type of mob that an NPC is.
- getType(Chunk, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource
- getType(ChunkSnapshot, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.AsyncChunkSnapshotBlockSource
- getType(ChunkSnapshot, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.ChunkSnapshotBlockSource
- getType(T, int, int, int) - Method in class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- getUniqueId() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- getUniqueId() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets the unique id of this NPC.
- getUsage() - Method in exception class net.citizensnpcs.api.command.exception.CommandUsageException
- getValue() - Method in class net.citizensnpcs.api.gui.InputMenus.Choice
- getValueFlags() - Method in class net.citizensnpcs.api.command.CommandContext
- getValuesDeep() - Method in class net.citizensnpcs.api.util.DataKey
- getValuesDeep() - Method in class net.citizensnpcs.api.util.MemoryDataKey
- getValuesDeep() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- getVector() - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint
-
Gets the vector represented by this point
- getVector() - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- getVector(NPC, Collection<NPC>) - Method in class net.citizensnpcs.api.ai.flocking.AlignmentBehavior
- getVector(NPC, Collection<NPC>) - Method in class net.citizensnpcs.api.ai.flocking.CohesionBehavior
- getVector(NPC, Collection<NPC>) - Method in interface net.citizensnpcs.api.ai.flocking.FlockBehavior
-
Returns the displacement vector to be combined with other
FlockBehavior
vectors by aFlocker
. - getVector(NPC, Collection<NPC>) - Method in class net.citizensnpcs.api.ai.flocking.SeparationBehavior
- getVersion() - Static method in class net.citizensnpcs.api.util.SpigotUtil
- getView() - Method in class net.citizensnpcs.api.util.SpigotUtil.InventoryViewAPI
- getWorld() - Method in class net.citizensnpcs.api.astar.pathfinder.BlockSource
- getWorld() - Method in class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- getWorld() - Method in class net.citizensnpcs.api.persistence.LocationPersister.LazilyLoadedLocation
- getWrapped() - Method in class net.citizensnpcs.api.ai.tree.ForwardingBehaviorGoalAdapter
- getWrapped() - Method in interface net.citizensnpcs.api.gui.ForwardingInventory
- GLOWING - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC is currently glowing.
- Goal - Interface in net.citizensnpcs.api.ai
-
Represents a Goal that can be added to a
GoalController
. - GoalController - Interface in net.citizensnpcs.api.ai
-
Represents a collection of goals that are prioritised and executed, allowing behaviour trees via a
GoalSelector
or by implementingBehavior
. - GoalController.GoalEntry - Interface in net.citizensnpcs.api.ai
- GoalSelector - Interface in net.citizensnpcs.api.ai
- GroupNPCFlock - Class in net.citizensnpcs.api.ai.flocking
-
Defines a static flock of NPCs with an optional radius.
- GroupNPCFlock(Iterable<NPC>, double) - Constructor for class net.citizensnpcs.api.ai.flocking.GroupNPCFlock
H
- h(VectorNode) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorGoal
- h(T) - Method in interface net.citizensnpcs.api.astar.AStarGoal
-
Returns the estimated heuristic cost of traversing from the supplied
AStarNode
to the goal. - HAND - Enum constant in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
- handle(LivingEntity, LivingEntity) - Method in interface net.citizensnpcs.api.ai.AttackStrategy
-
Tries to attack the supplied target from the supplied attacker.
- has(String) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Returns whether the metadata exists.
- has(String) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- has(UUID, String) - Method in class net.citizensnpcs.api.LocationLookup.PerPlayerMetadata
- has(NPC.Metadata) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Returns whether the metadata exists.
- has(NPC.Metadata) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- hasAnyFlags() - Method in class net.citizensnpcs.api.command.CommandContext
- hasAnyValueFlag(String...) - Method in class net.citizensnpcs.api.command.CommandContext
- hasCommand(String...) - Method in class net.citizensnpcs.api.command.CommandManager
-
Checks to see whether there is a command handler for the given command parts at the root level.
- hasCommand(Command, String...) - Method in class net.citizensnpcs.api.command.CommandManager
-
Checks to see whether there is a command handler for the given command at the root level.
- hasExaminer(Class<? extends BlockExaminer>) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- hasFlag(char) - Method in class net.citizensnpcs.api.command.CommandContext
- hashCode() - Method in class net.citizensnpcs.api.ai.SimpleGoalEntry
- hashCode() - Method in class net.citizensnpcs.api.ai.tree.ForwardingBehaviorGoalAdapter
- hashCode() - Method in class net.citizensnpcs.api.astar.AStarNode
- hashCode() - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- hashCode() - Method in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- hashCode() - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- hashCode() - Method in class net.citizensnpcs.api.hpastar.ClusterNode
- hashCode() - Method in class net.citizensnpcs.api.hpastar.HPAGraphAStarNode
- hashCode() - Method in class net.citizensnpcs.api.hpastar.HPAGraphNode
- hashCode() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- hashCode() - Method in class net.citizensnpcs.api.util.BoundingBox
- hashCode() - Method in class net.citizensnpcs.api.util.DataKey
- hashCode() - Method in class net.citizensnpcs.api.util.EntityDim
- hashCode() - Method in class net.citizensnpcs.api.util.MemoryDataKey
- hashCode() - Method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- hashCode() - Method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- hashCode() - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- hashCode() - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- hashCode() - Method in class net.citizensnpcs.api.util.SpigotUtil.InventoryViewAPI
- hashCode() - Method in class net.citizensnpcs.api.util.YamlStorage
- hashCode() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists
- hashCode() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- hasImplementation() - Static method in class net.citizensnpcs.api.CitizensAPI
- hasNamespace(String) - Method in class net.citizensnpcs.api.npc.templates.TemplateRegistry
- hasPage(int) - Method in class net.citizensnpcs.api.util.Paginator
- hasRecipients() - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
-
Checks if there are any recipients.
- hasTrait(Class<? extends Trait>) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- hasTrait(Class<? extends Trait>) - Method in interface net.citizensnpcs.api.npc.NPC
-
Checks if this NPC has the given trait.
- hasValueFlag(String) - Method in class net.citizensnpcs.api.command.CommandContext
- hasWalkableNodes() - Method in class net.citizensnpcs.api.hpastar.HPACluster
- header(String) - Method in class net.citizensnpcs.api.util.Paginator
- height - Variable in class net.citizensnpcs.api.util.EntityDim
- HELMET - Enum constant in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
- help() - Element in annotation type net.citizensnpcs.api.command.Command
-
A longer description of the command and any flags it uses which will be displayed in addition to
Command.desc()
in help commands. - heuristicDistance(Vector) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- HIGH_INFLUENCE - Static variable in class net.citizensnpcs.api.ai.flocking.Flocker
-
Sample weight indicating high amount of influence from flocking.
- HOLOGRAM_RENDERER - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
- HPACluster - Class in net.citizensnpcs.api.hpastar
- HPACluster(HPAGraph, int, int, int, int, int) - Constructor for class net.citizensnpcs.api.hpastar.HPACluster
- HPAEntrance - Class in net.citizensnpcs.api.hpastar
- HPAEntrance() - Constructor for class net.citizensnpcs.api.hpastar.HPAEntrance
- HPAGraph - Class in net.citizensnpcs.api.hpastar
- HPAGraph(BlockSource, int, int, int) - Constructor for class net.citizensnpcs.api.hpastar.HPAGraph
- HPAGraphAStarNode - Class in net.citizensnpcs.api.hpastar
- HPAGraphAStarNode(HPAGraphNode, HPAGraphEdge) - Constructor for class net.citizensnpcs.api.hpastar.HPAGraphAStarNode
- HPAGraphEdge - Class in net.citizensnpcs.api.hpastar
- HPAGraphEdge(HPAGraphNode, HPAGraphNode, HPAGraphEdge.EdgeType, float) - Constructor for class net.citizensnpcs.api.hpastar.HPAGraphEdge
- HPAGraphEdge.EdgeType - Enum in net.citizensnpcs.api.hpastar
- HPAGraphNode - Class in net.citizensnpcs.api.hpastar
- HPAGraphNode(int, int, int) - Constructor for class net.citizensnpcs.api.hpastar.HPAGraphNode
- HURT_SOUND - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Minecraft sound to play when hurt.
I
- ID_NOT_FOUND - Static variable in class net.citizensnpcs.api.command.CommandMessages
- idebug(Supplier<String>) - Static method in class net.citizensnpcs.api.util.Messaging
- Identity() - Constructor for class net.citizensnpcs.api.command.Arg.CompletionsProvider.Identity
- Identity() - Constructor for class net.citizensnpcs.api.command.Arg.FlagValidator.Identity
- IfElse - Class in net.citizensnpcs.api.ai.tree
- IfElse(Condition, Behavior, Behavior) - Constructor for class net.citizensnpcs.api.ai.tree.IfElse
- IGNORE - Enum constant in enum net.citizensnpcs.api.astar.pathfinder.BlockExaminer.PassableState
- inGroup(Collection<String>, Player) - Static method in class net.citizensnpcs.api.util.PermissionUtil
- initialise(MenuContext) - Method in class net.citizensnpcs.api.gui.InventoryMenuPage
- InjectContext - Annotation Type in net.citizensnpcs.api.gui
-
Marker annotation to inject context variables at runtime into
InventoryMenuPage
s. - Injector - Class in net.citizensnpcs.api.command
- Injector(Object...) - Constructor for class net.citizensnpcs.api.command.Injector
- InputMenus - Class in net.citizensnpcs.api.gui
- InputMenus() - Constructor for class net.citizensnpcs.api.gui.InputMenus
- InputMenus.BooleanSlotHandler - Class in net.citizensnpcs.api.gui
- InputMenus.Choice<T> - Class in net.citizensnpcs.api.gui
- InputMenus.Choice.Type - Enum in net.citizensnpcs.api.gui
- insert(HPAGraphNode) - Method in class net.citizensnpcs.api.hpastar.HPACluster
- instance - Variable in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- INSTANCE - Static variable in class net.citizensnpcs.api.ai.TeleportStuckAction
- INSTANCE - Static variable in class net.citizensnpcs.api.ai.tree.Empty
- INTER - Enum constant in enum net.citizensnpcs.api.hpastar.HPAGraphEdge.EdgeType
- INTRA - Enum constant in enum net.citizensnpcs.api.hpastar.HPAGraphEdge.EdgeType
- INVALID_LOCATION - Static variable in class net.citizensnpcs.api.command.CommandMessages
- INVALID_NUMBER - Static variable in class net.citizensnpcs.api.command.CommandMessages
- Inventory - Class in net.citizensnpcs.api.trait.trait
-
Represents an NPC's inventory.
- Inventory() - Constructor for class net.citizensnpcs.api.trait.trait.Inventory
- InventoryMenu - Class in net.citizensnpcs.api.gui
-
A container class for Inventory GUIs.
- InventoryMenu(InventoryMenu.InventoryMenuInfo, InventoryMenuPage) - Constructor for class net.citizensnpcs.api.gui.InventoryMenu
- InventoryMenuPage - Class in net.citizensnpcs.api.gui
-
The concrete page instance representing a single page in a stack of inventory menu GUIs.
- InventoryMenuPage() - Constructor for class net.citizensnpcs.api.gui.InventoryMenuPage
- InventoryMenuPattern - Class in net.citizensnpcs.api.gui
-
The concrete instance of a
MenuPattern
. - InventoryMenuPattern(MenuPattern, List<InventoryMenuSlot>, List<InventoryMenuTransition>) - Constructor for class net.citizensnpcs.api.gui.InventoryMenuPattern
- InventoryMenuSlot - Class in net.citizensnpcs.api.gui
-
Represents a single inventory slot in a
InventoryMenu
. - InventoryMenuTransition - Class in net.citizensnpcs.api.gui
-
The concrete class of
MenuTransition
. - InventoryMenuTransition(InventoryMenuSlot, Class<? extends InventoryMenuPage>) - Constructor for class net.citizensnpcs.api.gui.InventoryMenuTransition
- InventoryViewAPI(InventoryView) - Constructor for class net.citizensnpcs.api.util.SpigotUtil.InventoryViewAPI
- invert(Behavior) - Static method in class net.citizensnpcs.api.ai.tree.Decorator
- isActive() - Method in class net.citizensnpcs.api.gui.InputMenus.Choice
- isAggressive() - Method in interface net.citizensnpcs.api.ai.EntityTarget
- isAllowlist() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- isCancelled() - Method in class net.citizensnpcs.api.ai.speech.event.NPCSpeechEvent
- isCancelled() - Method in class net.citizensnpcs.api.ai.speech.event.SpeechEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.EntityTargetNPCEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCClickEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCCombustEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCCommandDispatchEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCDamageEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCDespawnEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCKnockbackEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCOpenDoorEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCOpenGateEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCPistonPushEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCPushEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCSeenByPlayerEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCSpawnEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCTeleportEvent
- isCancelled() - Method in class net.citizensnpcs.api.event.NPCVehicleDamageEvent
- isComplete() - Method in class net.citizensnpcs.api.astar.pathfinder.Path
- isComplete() - Method in interface net.citizensnpcs.api.astar.Plan
- isDebugging() - Static method in class net.citizensnpcs.api.util.Messaging
- isDefaultTrait() - Method in class net.citizensnpcs.api.trait.TraitInfo
- isDelayedCancellation() - Method in class net.citizensnpcs.api.event.NPCRightClickEvent
- isDenylist() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- isDoor(Material) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- isEmpty() - Method in class net.citizensnpcs.api.astar.AStarMachine.AStarState
- isExecutingGoal() - Method in interface net.citizensnpcs.api.ai.GoalController
- isExecutingGoal() - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- isFinished(VectorNode) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorGoal
- isFinished(T) - Method in interface net.citizensnpcs.api.astar.AStarGoal
-
Returns whether the supplied
AStarNode
represents the goal state for thisAStarGoal
. - isFlyable() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- isFlyable() - Method in interface net.citizensnpcs.api.npc.NPC
-
Returns whether this NPC is flyable or not.
- isGate(Material) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- isHidden(Player) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Whether the NPC should be hidden from the given Player
- isHiddenFrom(Player) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- isHiddenFrom(Player) - Method in interface net.citizensnpcs.api.npc.NPC
-
Returns whether the given player can see the NPC (i.e.
- isLiquid(Material...) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- isLiquidOrInLiquid(Block) - Static method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- isNavigating() - Method in interface net.citizensnpcs.api.ai.Navigator
- isNPC(Entity) - Method in interface net.citizensnpcs.api.npc.NPCRegistry
- isOwnedBy(String) - Method in class net.citizensnpcs.api.trait.trait.Owner
- isOwnedBy(UUID) - Method in class net.citizensnpcs.api.trait.trait.Owner
- isOwnedBy(CommandSender) - Method in class net.citizensnpcs.api.trait.trait.Owner
-
Gets if the given
CommandSender
is the owner of an NPC. - isPassable(BlockSource, PathPoint) - Method in interface net.citizensnpcs.api.astar.pathfinder.BlockExaminer
- isPassable(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.DoorExaminer
- isPassable(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.FlyingBlockExaminer
- isPassable(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- isPassable(BlockSource, PathPoint) - Method in class net.citizensnpcs.api.astar.pathfinder.SwimmingExaminer
- isPaused() - Method in interface net.citizensnpcs.api.ai.GoalController
- isPaused() - Method in interface net.citizensnpcs.api.ai.Navigator
- isPaused() - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- isProtected() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- isProtected() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets whether this NPC is protected from damage, movement and other events that players and mobs use to change the entity state of the NPC.
- isPushableByFluids() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- isPushableByFluids() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets whether this NPC is pushable by fluids.
- isRegistryKeyed(Class<?>) - Static method in class net.citizensnpcs.api.util.SpigotUtil
- isRunImplemented() - Method in class net.citizensnpcs.api.trait.Trait
- isSpawned() - Method in interface net.citizensnpcs.api.npc.NPC
-
Gets whether this NPC is currently spawned.
- isUpdating(NPC.NPCUpdate) - Method in interface net.citizensnpcs.api.npc.NPC
- isUsing1_13API() - Static method in class net.citizensnpcs.api.util.SpigotUtil
- isWaterMob(Entity) - Static method in class net.citizensnpcs.api.astar.pathfinder.SwimmingExaminer
- item() - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- item(ItemStack) - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- ITEM_AMOUNT - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Item amount.
- ITEM_DATA - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Item data.
- ITEM_ID - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Item ID.
- ItemStackPersister - Class in net.citizensnpcs.api.persistence
- ItemStackPersister() - Constructor for class net.citizensnpcs.api.persistence.ItemStackPersister
- ItemStorage - Class in net.citizensnpcs.api.util
- ItemStorage() - Constructor for class net.citizensnpcs.api.util.ItemStorage
- iterator() - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- iterator() - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
-
Gets direct recipients, if any.
J
- JUMP_POWER_SUPPLIER - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
K
- KEEP_CHUNK_LOADED - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to keep chunk loaded.
- keyExists() - Method in class net.citizensnpcs.api.util.DataKey
- keyExists(String) - Method in class net.citizensnpcs.api.util.DataKey
- keyExists(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- keyExists(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- keyType() - Element in annotation type net.citizensnpcs.api.persistence.Persist
-
The specific key type to use when deserialising Map keys from storage.
- KNOCKBACK - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Simple knockback toggle.
L
- LazilyLoadedLocation(String, double, double, double, float, float) - Constructor for class net.citizensnpcs.api.persistence.LocationPersister.LazilyLoadedLocation
- LEASH_PROTECTED - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC is leashable.
- LEGGINGS - Enum constant in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
- length() - Method in class net.citizensnpcs.api.command.CommandContext
- linkToNPC(NPC) - Method in class net.citizensnpcs.api.trait.Trait
- livingEntity() - Element in annotation type net.citizensnpcs.api.command.Requirements
- load() - Method in interface net.citizensnpcs.api.util.Storage
-
Loads data from a file or other location.
- load() - Method in class net.citizensnpcs.api.util.YamlStorage
- load() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists
- load(Class<? extends T>, DataKey) - Static method in class net.citizensnpcs.api.persistence.PersistenceLoader
-
Creates an instance of the given class using the default constructor and loads it using
PersistenceLoader.load(Object, DataKey)
. - load(TemplateWorkspace, NamespacedKey, DataKey) - Static method in class net.citizensnpcs.api.npc.templates.Template
- load(DataKey) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- load(DataKey) - Method in interface net.citizensnpcs.api.npc.NPC
- load(DataKey) - Method in interface net.citizensnpcs.api.persistence.Persistable
- load(DataKey) - Method in class net.citizensnpcs.api.trait.trait.Equipment
- load(DataKey) - Method in class net.citizensnpcs.api.trait.trait.Inventory
- load(DataKey) - Method in class net.citizensnpcs.api.trait.Trait
-
Loads a trait.
- load(DataKey) - Method in class net.citizensnpcs.api.trait.trait.MobType
- load(DataKey) - Method in class net.citizensnpcs.api.trait.trait.Spawned
- load(T, DataKey) - Static method in class net.citizensnpcs.api.persistence.PersistenceLoader
- loadFrom(DataKey) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Loads persistent metadata from the given
DataKey
. - loadFrom(DataKey) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- loadInto(NPCRegistry) - Method in class net.citizensnpcs.api.npc.MemoryNPCDataStore
- loadInto(NPCRegistry) - Method in interface net.citizensnpcs.api.npc.NPCDataStore
-
Loads NPCs from disk into the given
NPCRegistry
. - loadInto(NPCRegistry) - Method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- loadItemStack(DataKey) - Static method in class net.citizensnpcs.api.util.ItemStorage
- LOCATION - Enum constant in enum net.citizensnpcs.api.ai.TargetType
- LocationLookup - Class in net.citizensnpcs.api
- LocationLookup() - Constructor for class net.citizensnpcs.api.LocationLookup
- LocationLookup(NPCRegistry) - Constructor for class net.citizensnpcs.api.LocationLookup
- LocationLookup.AsyncPhTreeLoader<K,
V> - Class in net.citizensnpcs.api - LocationLookup.PerPlayerMetadata<T> - Class in net.citizensnpcs.api
- LocationPersister - Class in net.citizensnpcs.api.persistence
- LocationPersister() - Constructor for class net.citizensnpcs.api.persistence.LocationPersister
- LocationPersister.LazilyLoadedLocation - Class in net.citizensnpcs.api.persistence
- log(Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- logTr(String, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- lookAtFunction() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- lookAtFunction(Function<Navigator, Location>) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the position to look at during pathfinding, overriding the default 'look at target' behaviour.
- Loop - Class in net.citizensnpcs.api.ai.tree
-
A decorator
Behavior
that continues to execute its child behavior as long as aCondition
returnstrue
and the behavior returnsBehaviorStatus.SUCCESS
. - Loop(Behavior, Condition) - Constructor for class net.citizensnpcs.api.ai.tree.Loop
- lore() - Element in annotation type net.citizensnpcs.api.gui.MenuSlot
-
The lore of the inventory item, newline-delimited.
- LOW_INFLUENCE - Static variable in class net.citizensnpcs.api.ai.flocking.Flocker
-
Sample weight indicating low amount of influence from flocking.
M
- mapping - Variable in class net.citizensnpcs.api.LocationLookup.AsyncPhTreeLoader
- mapping(Behavior, Supplier<BehaviorStatus>) - Static method in class net.citizensnpcs.api.ai.tree.StatusMapper
- matches(String) - Method in class net.citizensnpcs.api.command.CommandContext
- material() - Element in annotation type net.citizensnpcs.api.gui.MenuSlot
-
The material to display (defaults to AIR).
- max() - Element in annotation type net.citizensnpcs.api.command.Command
-
The maximum number of arguments that the command will accept.
- maxX - Variable in class net.citizensnpcs.api.util.BoundingBox
- maxY - Variable in class net.citizensnpcs.api.util.BoundingBox
- maxZ - Variable in class net.citizensnpcs.api.util.BoundingBox
- MemoryDataKey - Class in net.citizensnpcs.api.util
- MemoryDataKey() - Constructor for class net.citizensnpcs.api.util.MemoryDataKey
- MemoryNPCDataStore - Class in net.citizensnpcs.api.npc
- MemoryNPCDataStore() - Constructor for class net.citizensnpcs.api.npc.MemoryNPCDataStore
- Menu - Annotation Type in net.citizensnpcs.api.gui
-
Defines a GUI inventory menu.
- MenuContext - Class in net.citizensnpcs.api.gui
-
A context class passed into the constructor of a
Menu
instance. - MenuContext(InventoryMenu, InventoryMenuSlot[], Inventory, String) - Constructor for class net.citizensnpcs.api.gui.MenuContext
- MenuContext(InventoryMenu, InventoryMenuSlot[], Inventory, String, Map<String, Object>) - Constructor for class net.citizensnpcs.api.gui.MenuContext
- MenuPattern - Annotation Type in net.citizensnpcs.api.gui
-
Defines a pattern of slots and/or transitions.
- MenuPatterns - Annotation Type in net.citizensnpcs.api.gui
- MenuSlot - Annotation Type in net.citizensnpcs.api.gui
-
Defines a slot with a certain item.
- MenuSlots - Annotation Type in net.citizensnpcs.api.gui
- MenuTransition - Annotation Type in net.citizensnpcs.api.gui
-
Defines a menu transition to a new sub-menu.
- MenuTransitions - Annotation Type in net.citizensnpcs.api.gui
- Messaging - Class in net.citizensnpcs.api.util
- Messaging() - Constructor for class net.citizensnpcs.api.util.Messaging
- MetadataStore - Interface in net.citizensnpcs.api.npc
-
Represents a storage system for metadata
- min() - Element in annotation type net.citizensnpcs.api.command.Command
-
Minimum number of arguments that are accepted by the command.
- MINECART_ITEM - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Minecart item name.
- MINECART_ITEM_DATA - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Minecart item data.
- MINECART_OFFSET - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Minecart item offset as defined by Minecraft.
- MinecraftBlockExaminer - Class in net.citizensnpcs.api.astar.pathfinder
- MinecraftBlockExaminer() - Constructor for class net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
- minecraftComponentFromRawMessage(String) - Static method in class net.citizensnpcs.api.util.Messaging
- minX - Variable in class net.citizensnpcs.api.util.BoundingBox
- minY - Variable in class net.citizensnpcs.api.util.BoundingBox
- minZ - Variable in class net.citizensnpcs.api.util.BoundingBox
- MISSING_TRAIT - Static variable in class net.citizensnpcs.api.command.CommandMessages
- MobType - Class in net.citizensnpcs.api.trait.trait
-
Represents an NPC's mob type.
- MobType() - Constructor for class net.citizensnpcs.api.trait.trait.MobType
- modifiedSpeed(float) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Modifieds the given speed value based on the current parameters.
- modifiers() - Element in annotation type net.citizensnpcs.api.command.Command
-
The argument modifiers accepted by the command.
- MoveToGoal - Class in net.citizensnpcs.api.ai.goals
- MoveToGoal(NPC, Location) - Constructor for class net.citizensnpcs.api.ai.goals.MoveToGoal
- mul(double) - Method in class net.citizensnpcs.api.util.BoundingBox
- mul(double, double, double) - Method in class net.citizensnpcs.api.util.BoundingBox
- mul(float) - Method in class net.citizensnpcs.api.util.EntityDim
- MUST_BE_INGAME - Static variable in class net.citizensnpcs.api.command.CommandMessages
- MUST_BE_OWNER - Static variable in class net.citizensnpcs.api.command.CommandMessages
- MUST_HAVE_SELECTED - Static variable in class net.citizensnpcs.api.command.CommandMessages
N
- name() - Method in class net.citizensnpcs.api.util.DataKey
- name() - Method in class net.citizensnpcs.api.util.MemoryDataKey
- name() - Method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- name() - Method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- name() - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- name() - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- name() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- NAMEPLATE_VISIBLE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether the NPC's nameplate should be visible.
- namespace() - Element in annotation type net.citizensnpcs.api.persistence.Persist
-
If using global/static persistence, must be non-empty.
- NamespacedKeyPersister - Class in net.citizensnpcs.api.persistence
- NamespacedKeyPersister() - Constructor for class net.citizensnpcs.api.persistence.NamespacedKeyPersister
- NavigationBeginEvent - Class in net.citizensnpcs.api.ai.event
- NavigationBeginEvent(Navigator) - Constructor for class net.citizensnpcs.api.ai.event.NavigationBeginEvent
- NavigationCancelEvent - Class in net.citizensnpcs.api.ai.event
- NavigationCancelEvent(Navigator, CancelReason) - Constructor for class net.citizensnpcs.api.ai.event.NavigationCancelEvent
- NavigationCompleteEvent - Class in net.citizensnpcs.api.ai.event
- NavigationCompleteEvent(Navigator) - Constructor for class net.citizensnpcs.api.ai.event.NavigationCompleteEvent
- NavigationEvent - Class in net.citizensnpcs.api.ai.event
- NavigationEvent(Navigator) - Constructor for class net.citizensnpcs.api.ai.event.NavigationEvent
- NavigationReplaceEvent - Class in net.citizensnpcs.api.ai.event
- NavigationReplaceEvent(Navigator) - Constructor for class net.citizensnpcs.api.ai.event.NavigationReplaceEvent
- NavigationStuckEvent - Class in net.citizensnpcs.api.ai.event
- NavigationStuckEvent(Navigator, StuckAction) - Constructor for class net.citizensnpcs.api.ai.event.NavigationStuckEvent
- Navigator - Interface in net.citizensnpcs.api.ai
-
Represents the pathfinding AI of an
NPC
. - NavigatorCallback - Interface in net.citizensnpcs.api.ai.event
- NavigatorParameters - Class in net.citizensnpcs.api.ai
- NavigatorParameters() - Constructor for class net.citizensnpcs.api.ai.NavigatorParameters
- NeighbourGeneratorBlockExaminer - Interface in net.citizensnpcs.api.astar.pathfinder
- net.citizensnpcs.api - package net.citizensnpcs.api
- net.citizensnpcs.api.ai - package net.citizensnpcs.api.ai
- net.citizensnpcs.api.ai.event - package net.citizensnpcs.api.ai.event
- net.citizensnpcs.api.ai.flocking - package net.citizensnpcs.api.ai.flocking
- net.citizensnpcs.api.ai.goals - package net.citizensnpcs.api.ai.goals
- net.citizensnpcs.api.ai.speech - package net.citizensnpcs.api.ai.speech
- net.citizensnpcs.api.ai.speech.event - package net.citizensnpcs.api.ai.speech.event
- net.citizensnpcs.api.ai.tree - package net.citizensnpcs.api.ai.tree
- net.citizensnpcs.api.astar - package net.citizensnpcs.api.astar
- net.citizensnpcs.api.astar.pathfinder - package net.citizensnpcs.api.astar.pathfinder
- net.citizensnpcs.api.command - package net.citizensnpcs.api.command
- net.citizensnpcs.api.command.exception - package net.citizensnpcs.api.command.exception
- net.citizensnpcs.api.event - package net.citizensnpcs.api.event
- net.citizensnpcs.api.exception - package net.citizensnpcs.api.exception
- net.citizensnpcs.api.gui - package net.citizensnpcs.api.gui
- net.citizensnpcs.api.hpastar - package net.citizensnpcs.api.hpastar
- net.citizensnpcs.api.npc - package net.citizensnpcs.api.npc
- net.citizensnpcs.api.npc.templates - package net.citizensnpcs.api.npc.templates
- net.citizensnpcs.api.persistence - package net.citizensnpcs.api.persistence
- net.citizensnpcs.api.trait - package net.citizensnpcs.api.trait
- net.citizensnpcs.api.trait.trait - package net.citizensnpcs.api.trait.trait
- net.citizensnpcs.api.util - package net.citizensnpcs.api.util
- NMSHelper - Interface in net.citizensnpcs.api
- NO_PERMISSION - Static variable in class net.citizensnpcs.api.command.CommandMessages
- NONE - Enum constant in enum net.citizensnpcs.api.ai.TargetType
- NoPermissionsException - Exception Class in net.citizensnpcs.api.command.exception
- NoPermissionsException() - Constructor for exception class net.citizensnpcs.api.command.exception.NoPermissionsException
- NORTH - Enum constant in enum net.citizensnpcs.api.hpastar.Direction
- npc - Variable in class net.citizensnpcs.api.trait.Trait
- NPC - Interface in net.citizensnpcs.api.npc
-
Represents an NPC with optional
Trait
s. - NPC_DESPAWNED - Enum constant in enum net.citizensnpcs.api.ai.event.CancelReason
- NPC_SPAWNING_IN_PROGRESS - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Internal use only
- NPC.Metadata - Enum in net.citizensnpcs.api.npc
- NPC.NPCUpdate - Enum in net.citizensnpcs.api.npc
- NPCAddTraitEvent - Class in net.citizensnpcs.api.event
- NPCAddTraitEvent(NPC, Trait) - Constructor for class net.citizensnpcs.api.event.NPCAddTraitEvent
- NPCClickEvent - Class in net.citizensnpcs.api.event
-
Represents an event where an NPC was clicked by a player.
- NPCClickEvent(NPC, Player) - Constructor for class net.citizensnpcs.api.event.NPCClickEvent
- NPCCloneEvent - Class in net.citizensnpcs.api.event
- NPCCloneEvent(NPC, NPC) - Constructor for class net.citizensnpcs.api.event.NPCCloneEvent
- NPCCollisionEvent - Class in net.citizensnpcs.api.event
- NPCCollisionEvent(NPC, Entity) - Constructor for class net.citizensnpcs.api.event.NPCCollisionEvent
- NPCCombustByBlockEvent - Class in net.citizensnpcs.api.event
- NPCCombustByBlockEvent(EntityCombustByBlockEvent, NPC) - Constructor for class net.citizensnpcs.api.event.NPCCombustByBlockEvent
- NPCCombustByEntityEvent - Class in net.citizensnpcs.api.event
- NPCCombustByEntityEvent(EntityCombustByEntityEvent, NPC) - Constructor for class net.citizensnpcs.api.event.NPCCombustByEntityEvent
- NPCCombustEvent - Class in net.citizensnpcs.api.event
- NPCCombustEvent(EntityCombustEvent, NPC) - Constructor for class net.citizensnpcs.api.event.NPCCombustEvent
- NPCCommandDispatchEvent - Class in net.citizensnpcs.api.event
-
Called just before a command list is dispatched.
- NPCCommandDispatchEvent(NPC, Player) - Constructor for class net.citizensnpcs.api.event.NPCCommandDispatchEvent
- NPCCreateEvent - Class in net.citizensnpcs.api.event
- NPCCreateEvent(NPC) - Constructor for class net.citizensnpcs.api.event.NPCCreateEvent
- NPCDamageByBlockEvent - Class in net.citizensnpcs.api.event
- NPCDamageByBlockEvent(NPC, EntityDamageByBlockEvent) - Constructor for class net.citizensnpcs.api.event.NPCDamageByBlockEvent
- NPCDamageByEntityEvent - Class in net.citizensnpcs.api.event
- NPCDamageByEntityEvent(NPC, EntityDamageByEntityEvent) - Constructor for class net.citizensnpcs.api.event.NPCDamageByEntityEvent
- NPCDamageEntityEvent - Class in net.citizensnpcs.api.event
- NPCDamageEntityEvent(NPC, EntityDamageByEntityEvent) - Constructor for class net.citizensnpcs.api.event.NPCDamageEntityEvent
- NPCDamageEvent - Class in net.citizensnpcs.api.event
- NPCDamageEvent(NPC, EntityDamageEvent) - Constructor for class net.citizensnpcs.api.event.NPCDamageEvent
- NPCDataStore - Interface in net.citizensnpcs.api.npc
- NPCDeathEvent - Class in net.citizensnpcs.api.event
- NPCDeathEvent(NPC, EntityDeathEvent) - Constructor for class net.citizensnpcs.api.event.NPCDeathEvent
- NPCDespawnEvent - Class in net.citizensnpcs.api.event
-
Called when an NPC despawns.
- NPCDespawnEvent(NPC, DespawnReason) - Constructor for class net.citizensnpcs.api.event.NPCDespawnEvent
- NPCEvent - Class in net.citizensnpcs.api.event
-
Represents an event thrown by an NPC.
- NPCEvent(NPC) - Constructor for class net.citizensnpcs.api.event.NPCEvent
- NPCEvent(NPC, boolean) - Constructor for class net.citizensnpcs.api.event.NPCEvent
- NPCFlock - Interface in net.citizensnpcs.api.ai.flocking
-
Represents a 'flock' of NPCs to be used as input to a
Flocker
. - NPCKnockbackEvent - Class in net.citizensnpcs.api.event
- NPCKnockbackEvent(NPC, double, Vector, Entity) - Constructor for class net.citizensnpcs.api.event.NPCKnockbackEvent
- NPCLeftClickEvent - Class in net.citizensnpcs.api.event
-
Called when an NPC is left-clicked by a player.
- NPCLeftClickEvent(NPC, Player) - Constructor for class net.citizensnpcs.api.event.NPCLeftClickEvent
- NPCLinkToPlayerEvent - Class in net.citizensnpcs.api.event
- NPCLinkToPlayerEvent(NPC, Player, boolean) - Constructor for class net.citizensnpcs.api.event.NPCLinkToPlayerEvent
- NPCLoadException - Exception Class in net.citizensnpcs.api.exception
-
Thrown when an NPC fails to load properly.
- NPCLoadException(String) - Constructor for exception class net.citizensnpcs.api.exception.NPCLoadException
- NPCLookCloseChangeTargetEvent - Class in net.citizensnpcs.api.event
- NPCLookCloseChangeTargetEvent(NPC, Player, Player) - Constructor for class net.citizensnpcs.api.event.NPCLookCloseChangeTargetEvent
- NPCMoveEvent - Class in net.citizensnpcs.api.event
- NPCMoveEvent(NPC, Location, Location) - Constructor for class net.citizensnpcs.api.event.NPCMoveEvent
- NPCOpenDoorEvent - Class in net.citizensnpcs.api.event
- NPCOpenDoorEvent(NPC, Block) - Constructor for class net.citizensnpcs.api.event.NPCOpenDoorEvent
- NPCOpenGateEvent - Class in net.citizensnpcs.api.event
- NPCOpenGateEvent(NPC, Block) - Constructor for class net.citizensnpcs.api.event.NPCOpenGateEvent
- NPCPistonPushEvent - Class in net.citizensnpcs.api.event
- NPCPistonPushEvent(NPC) - Constructor for class net.citizensnpcs.api.event.NPCPistonPushEvent
- NPCPushEvent - Class in net.citizensnpcs.api.event
- NPCPushEvent(NPC, Vector, Entity) - Constructor for class net.citizensnpcs.api.event.NPCPushEvent
- NPCRegistry - Interface in net.citizensnpcs.api.npc
-
Controls the registration and lookup of a set of
NPC
s. - NPCRemoveByCommandSenderEvent - Class in net.citizensnpcs.api.event
- NPCRemoveByCommandSenderEvent(NPC, CommandSender) - Constructor for class net.citizensnpcs.api.event.NPCRemoveByCommandSenderEvent
- NPCRemoveEvent - Class in net.citizensnpcs.api.event
- NPCRemoveEvent(NPC) - Constructor for class net.citizensnpcs.api.event.NPCRemoveEvent
- NPCRemoveTraitEvent - Class in net.citizensnpcs.api.event
- NPCRemoveTraitEvent(NPC, Trait) - Constructor for class net.citizensnpcs.api.event.NPCRemoveTraitEvent
- NPCRenameEvent - Class in net.citizensnpcs.api.event
- NPCRenameEvent(NPC, String, String) - Constructor for class net.citizensnpcs.api.event.NPCRenameEvent
- NPCRightClickEvent - Class in net.citizensnpcs.api.event
-
Called when an NPC is right-clicked by a player.
- NPCRightClickEvent(NPC, Player) - Constructor for class net.citizensnpcs.api.event.NPCRightClickEvent
- NPCSeenByPlayerEvent - Class in net.citizensnpcs.api.event
- NPCSeenByPlayerEvent(NPC, Player) - Constructor for class net.citizensnpcs.api.event.NPCSeenByPlayerEvent
- NPCSelectEvent - Class in net.citizensnpcs.api.event
-
Called when an NPC is selected by a player.
- NPCSelectEvent(NPC, CommandSender) - Constructor for class net.citizensnpcs.api.event.NPCSelectEvent
- NPCSelector - Interface in net.citizensnpcs.api.npc
-
Manages the 'selected
NPC
' for the server. - NPCSpawnEvent - Class in net.citizensnpcs.api.event
-
Called when an NPC spawns.
- NPCSpawnEvent(NPC, Location, SpawnReason) - Constructor for class net.citizensnpcs.api.event.NPCSpawnEvent
- NPCSpeechEvent - Class in net.citizensnpcs.api.ai.speech.event
-
Represents an event where an NPC speaks using /npc speak.
- NPCSpeechEvent(SpeechContext) - Constructor for class net.citizensnpcs.api.ai.speech.event.NPCSpeechEvent
- NPCTeleportEvent - Class in net.citizensnpcs.api.event
-
Called when an NPC teleports.
- NPCTeleportEvent(NPC, Location) - Constructor for class net.citizensnpcs.api.event.NPCTeleportEvent
- NPCTraitCommandAttachEvent - Class in net.citizensnpcs.api.event
- NPCTraitCommandAttachEvent(NPC, Class<? extends Trait>, CommandSender) - Constructor for class net.citizensnpcs.api.event.NPCTraitCommandAttachEvent
- NPCTraitCommandDetachEvent - Class in net.citizensnpcs.api.event
- NPCTraitCommandDetachEvent(NPC, Class<? extends Trait>, CommandSender) - Constructor for class net.citizensnpcs.api.event.NPCTraitCommandDetachEvent
- NPCTraitEvent - Class in net.citizensnpcs.api.event
- NPCTraitEvent(NPC, Trait) - Constructor for class net.citizensnpcs.api.event.NPCTraitEvent
- NPCUnlinkFromPlayerEvent - Class in net.citizensnpcs.api.event
- NPCUnlinkFromPlayerEvent(NPC, Player) - Constructor for class net.citizensnpcs.api.event.NPCUnlinkFromPlayerEvent
- NPCVehicleDamageEvent - Class in net.citizensnpcs.api.event
- NPCVehicleDamageEvent(NPC, VehicleDamageEvent) - Constructor for class net.citizensnpcs.api.event.NPCVehicleDamageEvent
O
- of(T, Material, String, boolean) - Static method in class net.citizensnpcs.api.gui.InputMenus.Choice
- OFF_HAND - Enum constant in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
- offset() - Element in annotation type net.citizensnpcs.api.gui.MenuPattern
-
The offset position to start the pattern at.
- OldEnumCompat - Class in net.citizensnpcs.api.util
- OldEnumCompat() - Constructor for class net.citizensnpcs.api.util.OldEnumCompat
- OldEnumCompat.CatTypeEnum - Class in net.citizensnpcs.api.util
- OldEnumCompat.FrogVariantEnum - Class in net.citizensnpcs.api.util
- OldEnumCompat.VillagerProfessionEnum - Class in net.citizensnpcs.api.util
- OldEnumCompat.VillagerTypeEnum - Class in net.citizensnpcs.api.util
- onAttach() - Method in class net.citizensnpcs.api.trait.trait.Equipment
- onAttach() - Method in class net.citizensnpcs.api.trait.Trait
-
Called when the trait has been attached to an
NPC
. - onClick(InventoryMenuSlot, InventoryClickEvent) - Method in class net.citizensnpcs.api.gui.InventoryMenuPage
- onClose(HumanEntity) - Method in class net.citizensnpcs.api.gui.InventoryMenuPage
- onCompletion(CancelReason) - Method in interface net.citizensnpcs.api.ai.event.NavigatorCallback
- onCopy() - Method in class net.citizensnpcs.api.trait.Trait
-
Called when the trait has been newly copied to an
NPC
. - onDespawn() - Method in class net.citizensnpcs.api.trait.trait.Inventory
- onDespawn() - Method in class net.citizensnpcs.api.trait.Trait
-
Called just before the attached
NPC
is despawned. - onDespawn() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- onDespawn(DespawnReason) - Method in class net.citizensnpcs.api.trait.Trait
-
Called just before the attached
NPC
is despawned. - ONE - Static variable in class net.citizensnpcs.api.util.BoundingBox
- onImplementationChanged() - Method in interface net.citizensnpcs.api.CitizensPlugin
-
Called when the current Citizens implementation is changed
- onInventoryClick(InventoryClickEvent) - Method in class net.citizensnpcs.api.gui.InventoryMenu
- onInventoryClose(InventoryCloseEvent) - Method in class net.citizensnpcs.api.gui.InventoryMenu
- onInventoryDrag(InventoryDragEvent) - Method in class net.citizensnpcs.api.gui.InventoryMenu
- onJoin(PlayerJoinEvent) - Method in class net.citizensnpcs.api.LocationLookup
- onPreSpawn() - Method in class net.citizensnpcs.api.trait.Trait
-
Called just before the
NPC
is spawned. - onQuit(PlayerQuitEvent) - Method in class net.citizensnpcs.api.LocationLookup
- onReached(NPC, Block) - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint.PathCallback
-
Run once the specificed point is reached.
- onRemove() - Method in class net.citizensnpcs.api.trait.Trait
-
Called when a trait is removed from the attached
NPC
. - onRemove(RemoveReason) - Method in class net.citizensnpcs.api.trait.Trait
-
Called when a trait is removed from the attached
NPC
. - onSeenByPlayer(Player) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
For internal use.
- onSpawn() - Method in class net.citizensnpcs.api.trait.trait.Equipment
- onSpawn() - Method in class net.citizensnpcs.api.trait.trait.Inventory
- onSpawn() - Method in class net.citizensnpcs.api.trait.trait.MobType
- onSpawn() - Method in class net.citizensnpcs.api.trait.Trait
-
Called when an
NPC
is spawned. - onTabComplete(CommandSender, Command, String, String[]) - Method in class net.citizensnpcs.api.command.CommandManager
- onWorldUnload(WorldUnloadEvent) - Method in class net.citizensnpcs.api.LocationLookup
- open(AStarNode) - Method in interface net.citizensnpcs.api.astar.AStarStorage
-
Close a given
AStarNode
, moving or adding it from the frontier to the open set. - open(AStarNode) - Method in class net.citizensnpcs.api.astar.SimpleAStarStorage
- openAnvilInventory(Player, Inventory, String) - Method in interface net.citizensnpcs.api.NMSHelper
- openInventory(Player) - Method in class net.citizensnpcs.api.trait.trait.Inventory
- optInToStats() - Method in class net.citizensnpcs.api.trait.TraitInfo
- OptionalEnumCompletions() - Constructor for class net.citizensnpcs.api.command.Arg.CompletionsProvider.OptionalEnumCompletions
- orderedPath() - Method in class net.citizensnpcs.api.astar.AStarNode
- Owner - Class in net.citizensnpcs.api.trait.trait
-
Represents the owner of an NPC.
- Owner() - Constructor for class net.citizensnpcs.api.trait.trait.Owner
- ownership() - Element in annotation type net.citizensnpcs.api.command.Requirements
P
- PACKET - Enum constant in enum net.citizensnpcs.api.npc.NPC.NPCUpdate
- PACKET_UPDATE_DELAY - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The packet update delay in ticks.
- Paginator - Class in net.citizensnpcs.api.util
- Paginator() - Constructor for class net.citizensnpcs.api.util.Paginator
- Paginator(int) - Constructor for class net.citizensnpcs.api.util.Paginator
- Paginator(Collection<String>) - Constructor for class net.citizensnpcs.api.util.Paginator
- ParallelBehavior - Interface in net.citizensnpcs.api.ai.tree
-
A marker interface for
Behavior
s that indicates to any parent nodes that the behavior can be run in parallel along with other behaviors. - parseComponents(String) - Static method in class net.citizensnpcs.api.util.Messaging
- parseDuration(String, TimeUnit) - Static method in class net.citizensnpcs.api.util.SpigotUtil
- parseEulerAngle(String) - Method in class net.citizensnpcs.api.command.CommandContext
- parseItemStack(String) - Static method in class net.citizensnpcs.api.command.CommandContext
- parseLocation(Location, String) - Static method in class net.citizensnpcs.api.command.CommandContext
- parsePlaceholders() - Element in annotation type net.citizensnpcs.api.command.Command
-
Whether to parse placeholders from the input command.
- parseQuaternion(String) - Static method in class net.citizensnpcs.api.command.CommandContext
- parseTicks(String) - Method in class net.citizensnpcs.api.command.CommandContext
- parseVector(String) - Static method in class net.citizensnpcs.api.command.CommandContext
- PASSABLE - Enum constant in enum net.citizensnpcs.api.astar.pathfinder.BlockExaminer.PassableState
- pat() - Element in annotation type net.citizensnpcs.api.gui.MenuSlot
-
For use with patterns.
- pat() - Element in annotation type net.citizensnpcs.api.gui.MenuTransition
-
For use with patterns.
- path - Variable in class net.citizensnpcs.api.util.DataKey
- Path - Class in net.citizensnpcs.api.astar.pathfinder
- Path(Collection<Vector>) - Constructor for class net.citizensnpcs.api.astar.pathfinder.Path
- pathDistanceMargin() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Gets the path distance margin.
- pathDistanceMargin(double) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the path distance margin.
- pathfind(boolean) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
- PATHFINDER_FALL_DISTANCE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
- PATHFINDER_OPEN_DOORS - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to open doors while pathfinding.
- PathPoint - Interface in net.citizensnpcs.api.astar.pathfinder
- PathPoint.PathCallback - Interface in net.citizensnpcs.api.astar.pathfinder
- PathStrategy - Interface in net.citizensnpcs.api.ai
-
A pathfinding strategy directed at a target.
- pause() - Method in class net.citizensnpcs.api.ai.goals.WanderGoal
- PENDING_RESPAWN - Enum constant in enum net.citizensnpcs.api.event.DespawnReason
- PercentageSlotHandler - Class in net.citizensnpcs.api.gui
- PercentageSlotHandler(Function<Integer, String>) - Constructor for class net.citizensnpcs.api.gui.PercentageSlotHandler
- PercentageSlotHandler(Function<Integer, String>, int) - Constructor for class net.citizensnpcs.api.gui.PercentageSlotHandler
- permission() - Element in annotation type net.citizensnpcs.api.command.Command
-
The permission of the command.
- permission() - Element in annotation type net.citizensnpcs.api.command.Flag
- PermissionUtil - Class in net.citizensnpcs.api.util
- PermissionUtil() - Constructor for class net.citizensnpcs.api.util.PermissionUtil
- PerPlayerMetadata(BiConsumer<LocationLookup.PerPlayerMetadata<T>, PlayerJoinEvent>) - Constructor for class net.citizensnpcs.api.LocationLookup.PerPlayerMetadata
- Persist - Annotation Type in net.citizensnpcs.api.persistence
-
A marker annotation for
PersistenceLoader
to persist a field by saving and loading it intoDataKey
s. - Persistable - Interface in net.citizensnpcs.api.persistence
-
An Object that can be serialised using
DataKey
s. - PersistenceLoader - Class in net.citizensnpcs.api.persistence
-
Performs reflective persistence of objects into
DataKey
s. - PersistenceLoader() - Constructor for class net.citizensnpcs.api.persistence.PersistenceLoader
- Persister<T> - Interface in net.citizensnpcs.api.persistence
-
A serialisation primitive to be used with
PersistenceLoader
to serialise custom objects. - PersisterRegistry<T> - Class in net.citizensnpcs.api.persistence
-
A stringly-typed registry that loads and saves its types using
PersistenceLoader
andDataKey
s. - picker(String, Consumer<InputMenus.Choice<T>>, InputMenus.Choice<T>...) - Static method in class net.citizensnpcs.api.gui.InputMenus
- PICKER - Enum constant in enum net.citizensnpcs.api.gui.InputMenus.Choice.Type
- PICKUP_ITEMS - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to pick up items.
- Placeholders - Class in net.citizensnpcs.api.util
- Placeholders() - Constructor for class net.citizensnpcs.api.util.Placeholders
- Placeholders.PlaceholderFunction - Interface in net.citizensnpcs.api.util
- Plan - Interface in net.citizensnpcs.api.astar
-
An abstract plan returned by the
AStarGoal
that should be run until completion. - PLAYER_NOT_FOUND_FOR_SPAWN - Static variable in class net.citizensnpcs.api.command.CommandMessages
- PlayerCloneNPCEvent - Class in net.citizensnpcs.api.event
- PlayerCloneNPCEvent(Player, NPC, NPC) - Constructor for class net.citizensnpcs.api.event.PlayerCloneNPCEvent
- PlayerCreateNPCEvent - Class in net.citizensnpcs.api.event
- PlayerCreateNPCEvent(Player, NPC) - Constructor for class net.citizensnpcs.api.event.PlayerCreateNPCEvent
- PlayerFilter - Class in net.citizensnpcs.api.trait.trait
- PlayerFilter() - Constructor for class net.citizensnpcs.api.trait.trait.PlayerFilter
- PlayerFilter(BiConsumer<Player, Entity>, BiConsumer<Player, Entity>) - Constructor for class net.citizensnpcs.api.trait.trait.PlayerFilter
- PlayerFilter.Mode - Enum in net.citizensnpcs.api.trait.trait
- PLUGIN - Enum constant in enum net.citizensnpcs.api.ai.event.CancelReason
- PLUGIN - Enum constant in enum net.citizensnpcs.api.event.DespawnReason
- PLUGIN - Enum constant in enum net.citizensnpcs.api.event.SpawnReason
- pos() - Element in annotation type net.citizensnpcs.api.gui.MenuTransition
-
The position of the slot within the inventory.
- Precondition - Class in net.citizensnpcs.api.ai.tree
- Precondition(Condition) - Constructor for class net.citizensnpcs.api.ai.tree.Precondition
- present(HumanEntity) - Method in class net.citizensnpcs.api.gui.InventoryMenu
-
Display the menu to the given player.
- PrioritisableGoal - Interface in net.citizensnpcs.api.ai
-
A dynamically prioritisable
Goal
. - prioritySelectionFunction() - Static method in class net.citizensnpcs.api.ai.tree.Selectors
-
Returns a default priority selection function that assumes the input
Behavior
s implementComparable
. - prioritySelector(Comparator<Behavior>, Collection<Behavior>) - Static method in class net.citizensnpcs.api.ai.tree.Selectors
- prioritySelector(Comparator<Behavior>, Behavior...) - Static method in class net.citizensnpcs.api.ai.tree.Selectors
- process(CommandSender, CommandContext, Annotation, Object[]) - Method in interface net.citizensnpcs.api.command.CommandAnnotationProcessor
- process(CommandSender, CommandContext, Annotation, Object[]) - Method in class net.citizensnpcs.api.command.RequirementsProcessor
- processor() - Element in annotation type net.citizensnpcs.api.trait.TraitEventHandler
Q
- QuaternionfPersister - Class in net.citizensnpcs.api.persistence
- QuaternionfPersister() - Constructor for class net.citizensnpcs.api.persistence.QuaternionfPersister
R
- radius() - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- radius(double) - Method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal.Builder
- radius(double) - Method in class net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- RadiusNPCFlock - Class in net.citizensnpcs.api.ai.flocking
-
A dynamic flock of NPCs that checks for entity NPCs within a certain block radius.
- RadiusNPCFlock(double) - Constructor for class net.citizensnpcs.api.ai.flocking.RadiusNPCFlock
- RadiusNPCFlock(double, int) - Constructor for class net.citizensnpcs.api.ai.flocking.RadiusNPCFlock
- range() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- range(float) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the pathfinding range in blocks.
- recalculate() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- reconstructSolution() - Method in class net.citizensnpcs.api.hpastar.ReversableAStarNode
- reflectValueOf(String, OldEnumCompat.Methods, Function<Object, T>) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- reflectValueOf(String, OldEnumCompat.Methods, Function<Object, T>) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- reflectValueOf(String, OldEnumCompat.Methods, Function<Object, T>) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- reflectValueOf(String, OldEnumCompat.Methods, Function<Object, T>) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- reflectValues(OldEnumCompat.Methods, Function<Object, T>) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- reflectValues(OldEnumCompat.Methods, Function<Object, T>) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- reflectValues(OldEnumCompat.Methods, Function<Object, T>) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- reflectValues(OldEnumCompat.Methods, Function<Object, T>) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- regionCentres(Supplier<Iterable<Location>>) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
- register(Class<?>) - Method in class net.citizensnpcs.api.command.CommandManager
-
Register a class that contains commands (methods annotated with
Command
). - register(String, Class<? extends T>) - Method in class net.citizensnpcs.api.persistence.PersisterRegistry
- registerAnnotationProcessor(CommandAnnotationProcessor) - Method in class net.citizensnpcs.api.command.CommandManager
-
Registers an
CommandAnnotationProcessor
that can process annotations before a command is executed. - registeredTypes() - Method in class net.citizensnpcs.api.persistence.PersisterRegistry
- registerEvents(Listener) - Static method in class net.citizensnpcs.api.CitizensAPI
-
A helper method for registering events using the current implementation's
Plugin
. - registerListener(Plugin) - Method in class net.citizensnpcs.api.trait.TraitInfo
- registerMetadata(String, BiConsumer<LocationLookup.PerPlayerMetadata<T>, PlayerJoinEvent>) - Method in class net.citizensnpcs.api.LocationLookup
- registerNPCPlaceholder(Pattern, Placeholders.PlaceholderFunction) - Static method in class net.citizensnpcs.api.util.Placeholders
- registerPersistDelegate(Class<?>, Class<? extends Persister<?>>) - Static method in class net.citizensnpcs.api.persistence.PersistenceLoader
-
Registers a
Persister
redirect. - registerTabCompletion(JavaPlugin) - Method in class net.citizensnpcs.api.command.CommandManager
- registerTrait(TraitInfo) - Method in interface net.citizensnpcs.api.trait.TraitFactory
-
Registers a trait using the given information.
- reify() - Element in annotation type net.citizensnpcs.api.persistence.Persist
-
Whether to use PersistenceLoader to load/save the value of this class.
- RELOAD - Enum constant in enum net.citizensnpcs.api.event.DespawnReason
- reloadFromSource() - Method in class net.citizensnpcs.api.npc.MemoryNPCDataStore
- reloadFromSource() - Method in interface net.citizensnpcs.api.npc.NPCDataStore
-
Reloads the data store from source (such as a file on disk).
- reloadFromSource() - Method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- REMOVAL - Enum constant in enum net.citizensnpcs.api.event.DespawnReason
- REMOVAL - Enum constant in enum net.citizensnpcs.api.util.RemoveReason
- remove(String) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Removes any metadata at the given metadata key.
- remove(String) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- remove(UUID, String) - Method in class net.citizensnpcs.api.LocationLookup.PerPlayerMetadata
- remove(HPAGraphNode...) - Method in class net.citizensnpcs.api.hpastar.HPACluster
- remove(NPC.Metadata) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Removes any metadata at the given metadata key.
- remove(NPC.Metadata) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- REMOVE_FROM_PLAYERLIST - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to remove players from the player list.
- REMOVE_FROM_TABLIST - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to remove the NPC from the tablist.
- removeAllValues(String) - Method in class net.citizensnpcs.api.LocationLookup.PerPlayerMetadata
- removeBehavior(Behavior) - Method in interface net.citizensnpcs.api.ai.GoalController
-
Removes the given
Behavior
from rotation. - removeBehavior(Behavior) - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- removeBehavior(Behavior) - Method in class net.citizensnpcs.api.ai.tree.Composite
- removeBestNode() - Method in interface net.citizensnpcs.api.astar.AStarStorage
-
Returns the best node from the frontier and removes it.
- removeBestNode() - Method in class net.citizensnpcs.api.astar.SimpleAStarStorage
- removeGoal(Goal) - Method in interface net.citizensnpcs.api.ai.GoalController
-
Removes a
Goal
from rotation. - removeGoal(Goal) - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- removeGroup(String) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Unhides the given permissions group
- removeKey(String) - Method in class net.citizensnpcs.api.util.DataKey
- removeKey(String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- removeKey(String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- removeNamedNPCRegistry(String) - Static method in class net.citizensnpcs.api.CitizensAPI
-
Removes any previously created
NPCRegistry
stored under the given name. - removeNamedNPCRegistry(String) - Method in interface net.citizensnpcs.api.CitizensPlugin
-
Removes the named NPCRegistry with the given name.
- removePlayer(UUID) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Unhides the given Player UUID
- RemoveReason - Enum in net.citizensnpcs.api.util
- removeRunCallback(Runnable) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Removes a previously added run callback.
- removeTrait(Class<? extends Trait>) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- removeTrait(Class<? extends Trait>) - Method in interface net.citizensnpcs.api.npc.NPC
-
Removes a trait from this NPC.
- replace(String, CommandSender, NPC) - Static method in class net.citizensnpcs.api.util.Placeholders
- replace(String, OfflinePlayer) - Static method in class net.citizensnpcs.api.util.Placeholders
- REPLACE - Enum constant in enum net.citizensnpcs.api.ai.event.CancelReason
- replaceName(String, CommandSender, NPC) - Static method in class net.citizensnpcs.api.util.Placeholders
- REPORT_ERROR - Static variable in class net.citizensnpcs.api.command.CommandMessages
- required() - Element in annotation type net.citizensnpcs.api.persistence.Persist
-
Whether a value must be present at load time.
- RequirementMissingException - Exception Class in net.citizensnpcs.api.command.exception
- RequirementMissingException(String) - Constructor for exception class net.citizensnpcs.api.command.exception.RequirementMissingException
- Requirements - Annotation Type in net.citizensnpcs.api.command
- REQUIREMENTS_INVALID_MOB_TYPE - Static variable in class net.citizensnpcs.api.command.CommandMessages
- REQUIREMENTS_MUST_BE_LIVING_ENTITY - Static variable in class net.citizensnpcs.api.command.CommandMessages
- RequirementsProcessor - Class in net.citizensnpcs.api.command
- RequirementsProcessor() - Constructor for class net.citizensnpcs.api.command.RequirementsProcessor
- requiresFlags() - Element in annotation type net.citizensnpcs.api.command.Command
-
Whether a flag or value flag MUST be used for this command.
- requiresNameHologram() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- requiresNameHologram() - Method in interface net.citizensnpcs.api.npc.NPC
- reset() - Method in interface net.citizensnpcs.api.ai.Goal
-
Resets the goal and any resources or state it is holding.
- reset() - Method in class net.citizensnpcs.api.ai.goals.FollowPathGoal
- reset() - Method in class net.citizensnpcs.api.ai.goals.MoveToGoal
- reset() - Method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal
- reset() - Method in class net.citizensnpcs.api.ai.goals.WanderGoal
- reset() - Method in interface net.citizensnpcs.api.ai.tree.Behavior
-
Resets the behavior and any state it is holding.
- reset() - Method in class net.citizensnpcs.api.ai.tree.Callback
- reset() - Method in class net.citizensnpcs.api.ai.tree.Composite
- reset() - Method in class net.citizensnpcs.api.ai.tree.Decorator
- reset() - Method in class net.citizensnpcs.api.ai.tree.Empty
- reset() - Method in class net.citizensnpcs.api.ai.tree.ForwardingBehaviorGoalAdapter
- reset() - Method in class net.citizensnpcs.api.ai.tree.IfElse
- reset() - Method in class net.citizensnpcs.api.ai.tree.Loop
- reset() - Method in class net.citizensnpcs.api.ai.tree.RetryDecorator
- reset() - Method in class net.citizensnpcs.api.ai.tree.Selector
- reset() - Method in class net.citizensnpcs.api.ai.tree.Sequence
- reset() - Method in class net.citizensnpcs.api.ai.tree.StatusMapper
- reset() - Method in class net.citizensnpcs.api.ai.tree.TimerDecorator
- RESET_AND_REMOVE - Enum constant in enum net.citizensnpcs.api.ai.tree.BehaviorStatus
- RESET_PITCH_ON_TICK - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to reset entity pitch to
0
every tick (default Minecraft behaviour). - RESET_YAW_ON_SPAWN - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to reset NPC yaw on spawn.
- RESPAWN - Enum constant in enum net.citizensnpcs.api.event.SpawnReason
- RESPAWN_DELAY - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The Integer delay to respawn in ticks after death.
- retry(Behavior, int) - Static method in class net.citizensnpcs.api.ai.tree.RetryDecorator
- retryChildren() - Method in class net.citizensnpcs.api.ai.tree.Selector.Builder
-
Sets whether to retry child
Behavior
s when they returnBehaviorStatus.FAILURE
. - retryChildren() - Method in class net.citizensnpcs.api.ai.tree.Selector
- retryChildren() - Method in class net.citizensnpcs.api.ai.tree.Sequence
- retryChildren(boolean) - Method in class net.citizensnpcs.api.ai.tree.Selector.Builder
-
Sets whether to retry child
Behavior
s when they returnBehaviorStatus.FAILURE
. - RetryDecorator - Class in net.citizensnpcs.api.ai.tree
-
Decorates a
Behavior
and retries failures a certain number of times. - ReversableAStarNode - Class in net.citizensnpcs.api.hpastar
- ReversableAStarNode() - Constructor for class net.citizensnpcs.api.hpastar.ReversableAStarNode
- run() - Method in class net.citizensnpcs.api.ai.flocking.Flocker
- run() - Method in class net.citizensnpcs.api.ai.goals.FollowPathGoal
- run() - Method in class net.citizensnpcs.api.ai.goals.MoveToGoal
- run() - Method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal
- run() - Method in class net.citizensnpcs.api.ai.goals.WanderGoal
- run() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
FOR INTERNAL USE ONLY: ticks all
Runnable
callbacks. - run() - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- run() - Method in interface net.citizensnpcs.api.ai.tree.Behavior
-
Runs the behavior for one 'tick', optionally changing the state that it is in.
- run() - Method in class net.citizensnpcs.api.ai.tree.Callback
- run() - Method in class net.citizensnpcs.api.ai.tree.Decorator
- run() - Method in class net.citizensnpcs.api.ai.tree.Empty
- run() - Method in class net.citizensnpcs.api.ai.tree.ForwardingBehaviorGoalAdapter
- run() - Method in class net.citizensnpcs.api.ai.tree.IfElse
- run() - Method in class net.citizensnpcs.api.ai.tree.Loop
- run() - Method in class net.citizensnpcs.api.ai.tree.RetryDecorator
- run() - Method in class net.citizensnpcs.api.ai.tree.Selector
- run() - Method in class net.citizensnpcs.api.ai.tree.Sequence
- run() - Method in class net.citizensnpcs.api.ai.tree.StatusMapper
- run() - Method in class net.citizensnpcs.api.ai.tree.TimerDecorator
- run() - Method in class net.citizensnpcs.api.gui.InventoryMenu
- run() - Method in class net.citizensnpcs.api.gui.InventoryMenuPage
- run() - Method in class net.citizensnpcs.api.LocationLookup.AsyncPhTreeLoader
- run() - Method in class net.citizensnpcs.api.LocationLookup
- run() - Method in class net.citizensnpcs.api.trait.trait.Equipment
- run() - Method in class net.citizensnpcs.api.trait.trait.Inventory
- run() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- run() - Method in class net.citizensnpcs.api.trait.Trait
-
Called every tick if overridden.
- run(GoalSelector) - Method in interface net.citizensnpcs.api.ai.Goal
-
Updates the goal.
- run(GoalSelector) - Method in class net.citizensnpcs.api.ai.tree.BehaviorGoalAdapter
- run(AStarMachine.AStarState) - Method in class net.citizensnpcs.api.astar.AStarMachine
-
Runs the
AStarMachine<N extends AStarNode,
until a plan is found.P extends Plan>.AStarState - run(AStarMachine.AStarState, int) - Method in class net.citizensnpcs.api.astar.AStarMachine
-
Runs the machine using the given
AStarMachine<N extends AStarNode,
'sP extends Plan>.AStarState AStarStorage
. - run(NPC) - Method in class net.citizensnpcs.api.astar.pathfinder.Path
- run(NPC, Navigator) - Method in interface net.citizensnpcs.api.ai.StuckAction
-
Called when the
Navigator
reports that it is stuck. - run(NPC, Navigator) - Method in class net.citizensnpcs.api.ai.TeleportStuckAction
- run(NPC, Block, List<Block>, int) - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint.PathCallback
-
Run every tick when moving towards a specific block.
- runChatStringSetter(InventoryMenu, HumanEntity, String, Consumer<String>) - Static method in class net.citizensnpcs.api.gui.InputMenus
- runFully(AStarGoal<N>, N) - Method in class net.citizensnpcs.api.astar.AStarMachine
-
Runs the machine until a plan is either found or cannot be generated.
- runFully(AStarGoal<N>, N, int) - Method in class net.citizensnpcs.api.astar.AStarMachine
-
Runs the machine fully until the iteration limit has been exceeded.
- RUNNING - Enum constant in enum net.citizensnpcs.api.ai.tree.BehaviorStatus
-
Indicates that the
Behavior
is still running and should be continued next tick. - runPrecondition(Condition) - Static method in class net.citizensnpcs.api.ai.tree.Precondition
-
Creates a
Precondition
that returns eitherBehaviorStatus.SUCCESS
orBehaviorStatus.FAILURE
depending on the underlyingCondition
's return status.
S
- save() - Method in interface net.citizensnpcs.api.util.Storage
-
Saves the in-memory aspects of the storage to disk.
- save() - Method in class net.citizensnpcs.api.util.YamlStorage
- save() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists
- save(Object, DataKey) - Static method in class net.citizensnpcs.api.persistence.PersistenceLoader
- save(UUID, DataKey) - Method in class net.citizensnpcs.api.persistence.UUIDPersister
- save(DataKey) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- save(DataKey) - Method in interface net.citizensnpcs.api.npc.NPC
- save(DataKey) - Method in interface net.citizensnpcs.api.persistence.Persistable
- save(DataKey) - Method in class net.citizensnpcs.api.trait.trait.Equipment
- save(DataKey) - Method in class net.citizensnpcs.api.trait.trait.Inventory
- save(DataKey) - Method in class net.citizensnpcs.api.trait.trait.MobType
- save(DataKey) - Method in class net.citizensnpcs.api.trait.Trait
-
Saves a trait.
- save(DataKey) - Method in class net.citizensnpcs.api.trait.trait.Spawned
- save(Component, DataKey) - Method in class net.citizensnpcs.api.persistence.ComponentPersister
- save(ItemStack, DataKey) - Method in class net.citizensnpcs.api.persistence.ItemStackPersister
- save(Location, DataKey) - Method in class net.citizensnpcs.api.persistence.LocationPersister
- save(NamespacedKey, DataKey) - Method in class net.citizensnpcs.api.persistence.NamespacedKeyPersister
- save(EulerAngle, DataKey) - Method in class net.citizensnpcs.api.persistence.EulerAnglePersister
- save(Vector, DataKey) - Method in class net.citizensnpcs.api.persistence.VectorPersister
- save(Quaternionfc, DataKey) - Method in class net.citizensnpcs.api.persistence.QuaternionfPersister
- save(T, DataKey) - Method in interface net.citizensnpcs.api.persistence.Persister
-
Saves the object instance to the given
DataKey
. - save(T, DataKey) - Method in class net.citizensnpcs.api.persistence.PersisterRegistry
- saveItem(DataKey, ItemStack) - Static method in class net.citizensnpcs.api.util.ItemStorage
- saveTo(DataKey) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Saves persistent metadata to the given
DataKey
. - saveTo(DataKey) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- saveToDisk() - Method in class net.citizensnpcs.api.npc.MemoryNPCDataStore
- saveToDisk() - Method in interface net.citizensnpcs.api.npc.NPCDataStore
-
Notifies the data store to save all stored data to disk.
- saveToDisk() - Method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- saveToDiskImmediate() - Method in class net.citizensnpcs.api.npc.MemoryNPCDataStore
- saveToDiskImmediate() - Method in interface net.citizensnpcs.api.npc.NPCDataStore
-
Notifies the data store to save all stored data to disk immediately.
- saveToDiskImmediate() - Method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- saveToStore() - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Saves the NPCs to the internal
NPCDataStore
- scheduleUpdate(NPC.NPCUpdate) - Method in interface net.citizensnpcs.api.npc.NPC
- SCOREBOARD_FAKE_TEAM_NAME - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The fake NPC scoreboard team name because Minecraft requires a team name.
- sectionToValues(ConfigurationSection) - Method in class net.citizensnpcs.api.util.DataKey
- select(Goal) - Method in interface net.citizensnpcs.api.ai.GoalSelector
-
Replaces the execution of any running
Goal
s with the specified goal. - select(Goal) - Method in class net.citizensnpcs.api.ai.SimpleGoalController.SimpleGoalSelector
- select(CommandSender, NPC) - Method in interface net.citizensnpcs.api.npc.NPCSelector
- selectAdditional(Goal...) - Method in interface net.citizensnpcs.api.ai.GoalSelector
-
Adds the provided
Goal
s to the execution list. - selectAdditional(Goal...) - Method in class net.citizensnpcs.api.ai.SimpleGoalController.SimpleGoalSelector
- selected() - Element in annotation type net.citizensnpcs.api.command.Requirements
- selecting(Collection<Behavior>) - Static method in class net.citizensnpcs.api.ai.tree.Selector
- selecting(Behavior...) - Static method in class net.citizensnpcs.api.ai.tree.Selector
- selectionFunction(Function<List<Behavior>, Behavior>) - Method in class net.citizensnpcs.api.ai.tree.Selector.Builder
- Selector - Class in net.citizensnpcs.api.ai.tree
-
A selector of sub-goals, that chooses a single
Behavior
to execute from a list. - Selector.Builder - Class in net.citizensnpcs.api.ai.tree
- Selectors - Class in net.citizensnpcs.api.ai.tree
-
Static helper class for creating common
Selector
s. - Selectors.PrioritySelection - Class in net.citizensnpcs.api.ai.tree
- send(CommandSender, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- sendColorless(CommandSender, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- sendError(CommandSender, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- sendErrorTr(CommandSender, String, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- sendPage(CommandSender, int) - Method in class net.citizensnpcs.api.util.Paginator
- sendTr(CommandSender, String, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- sendTrColorless(CommandSender, String, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- sendWithNPC(CommandSender, Object, NPC) - Static method in class net.citizensnpcs.api.util.Messaging
- sendWithNPCColorless(CommandSender, Object, NPC) - Static method in class net.citizensnpcs.api.util.Messaging
- SeparationBehavior - Class in net.citizensnpcs.api.ai.flocking
-
Implements separation flocking with a particular weight i.e.
- SeparationBehavior(double) - Constructor for class net.citizensnpcs.api.ai.flocking.SeparationBehavior
- SeparationBehavior(double, double) - Constructor for class net.citizensnpcs.api.ai.flocking.SeparationBehavior
- Sequence - Class in net.citizensnpcs.api.ai.tree
-
Runs each
Behavior
in sequence. - serverCommand - Variable in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- ServerCommandException - Exception Class in net.citizensnpcs.api.command.exception
- ServerCommandException() - Constructor for exception class net.citizensnpcs.api.command.exception.ServerCommandException
- set(int, ItemStack) - Method in class net.citizensnpcs.api.trait.trait.Equipment
-
Set the armor from the given slot as the given item.
- set(String, Object) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Stores data at the given key.
- set(String, Object) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- set(UUID, String, T) - Method in class net.citizensnpcs.api.LocationLookup.PerPlayerMetadata
- set(NPC.Metadata, Object) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Stores data at the given key.
- set(NPC.Metadata, Object) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- set(Equipment.EquipmentSlot, ItemStack) - Method in class net.citizensnpcs.api.trait.trait.Equipment
- setAction(StuckAction) - Method in class net.citizensnpcs.api.ai.event.NavigationStuckEvent
- setActive(boolean) - Method in class net.citizensnpcs.api.gui.InputMenus.Choice
- setAllowlist() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- setAlwaysUseNameHologram(boolean) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- setAlwaysUseNameHologram(boolean) - Method in interface net.citizensnpcs.api.npc.NPC
-
Sets whether to always use a name hologram instead of the in-built Minecraft name.
- setApplyRange(double) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Sets the range in blocks where the filter applies.
- setBoolean(String, boolean) - Method in class net.citizensnpcs.api.util.DataKey
- setBoolean(String, boolean) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- setBoolean(String, boolean) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- setBukkitEntityType(EntityType) - Method in interface net.citizensnpcs.api.npc.NPC
-
Sets the
EntityType
of this NPC. - setCancelled(boolean) - Method in class net.citizensnpcs.api.ai.speech.event.NPCSpeechEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.ai.speech.event.SpeechEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.EntityTargetNPCEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCClickEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCCombustEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCCommandDispatchEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCDamageEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCDespawnEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCKnockbackEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCOpenDoorEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCOpenGateEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCPistonPushEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCPushEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCSeenByPlayerEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCSpawnEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCTeleportEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.event.NPCVehicleDamageEvent
- setCancelled(boolean) - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- setCancelReason(String) - Method in class net.citizensnpcs.api.event.CommandSenderCreateNPCEvent
-
Sets the reason for cancelling the event.
- setCancelReason(CancelReason) - Method in class net.citizensnpcs.api.ai.AbstractPathStrategy
- setCanSwimInLava(boolean) - Method in class net.citizensnpcs.api.astar.pathfinder.SwimmingExaminer
- setClickHandler(Consumer<CitizensInventoryClickEvent>) - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- setContents(ItemStack[]) - Method in class net.citizensnpcs.api.trait.trait.Inventory
-
Sets the contents of an NPC's inventory.
- setCosmetic(Equipment.EquipmentSlot, ItemStack) - Method in class net.citizensnpcs.api.trait.trait.Equipment
-
Set the cosmetic equipment in the given slot
- setCurrentItem(ItemStack) - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- setCurrentItemDescription(String) - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- setCursor(ItemStack) - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- setDamage(double) - Method in class net.citizensnpcs.api.event.NPCDamageEvent
- setDamage(int) - Method in class net.citizensnpcs.api.event.NPCDamageEvent
- setDefaultDurationUnits(TimeUnit) - Method in class net.citizensnpcs.api.command.CommandManager
- setDefaultNPCDataStore(NPCDataStore) - Method in interface net.citizensnpcs.api.CitizensPlugin
-
Sets the default NPC data store.
- setDelay(int) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal
- setDelayedCancellation(boolean) - Method in class net.citizensnpcs.api.event.NPCRightClickEvent
- setDenylist() - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Implementation detail: may change in the future.
- setDescription(String) - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- setDouble(String, double) - Method in class net.citizensnpcs.api.util.DataKey
- setDouble(String, double) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- setDouble(String, double) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- setDroppedExp(int) - Method in class net.citizensnpcs.api.event.NPCDeathEvent
- setFilter(Collection<InventoryAction>) - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
-
Sets a new
ClickType
filter that will only accept clicks with the given type. - setFlyable(boolean) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- setFlyable(boolean) - Method in interface net.citizensnpcs.api.npc.NPC
-
Sets whether this NPC is flyable or not.
- setFrom(Location) - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- setImplementation(CitizensPlugin) - Static method in class net.citizensnpcs.api.CitizensAPI
-
Sets the current Citizens implementation.
- setInjector(Injector) - Method in class net.citizensnpcs.api.command.CommandManager
- setInstance(File, Locale) - Static method in class net.citizensnpcs.api.util.Translator
- setInt(String, int) - Method in class net.citizensnpcs.api.util.DataKey
- setInt(String, int) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- setInt(String, int) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- setItem(int, ItemStack) - Method in class net.citizensnpcs.api.trait.trait.Inventory
- setItemProvider(Supplier<ItemStack>) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- setItemProvider(Supplier<ItemStack>) - Method in interface net.citizensnpcs.api.npc.NPC
- setItemStack(ItemStack) - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
-
Manually set the
ItemStack
for this slot - setItemStack(ItemStack, String) - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- setItemStack(ItemStack, String, String) - Method in class net.citizensnpcs.api.gui.InventoryMenuSlot
- setLong(String, long) - Method in class net.citizensnpcs.api.util.DataKey
- setLong(String, long) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- setLong(String, long) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- setMaxForce(double) - Method in class net.citizensnpcs.api.ai.flocking.Flocker
-
Sets the maximum length of the resultant flocking vector.
- setMessage(String) - Method in class net.citizensnpcs.api.ai.speech.event.SpeechEvent
-
Sets the message to be sent to the bystander.
- setMessage(String) - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
-
Sets the text message sent.
- setMoveDestination(Location) - Method in interface net.citizensnpcs.api.npc.NPC
-
Set the target movement destination location to walk towards using Minecraft movement.
- setName(String) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- setName(String) - Method in interface net.citizensnpcs.api.npc.NPC
-
Sets the name of this NPC.
- setNameInternal(String) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- setNewName(String) - Method in class net.citizensnpcs.api.event.NPCRenameEvent
- setNewTarget(Player) - Method in class net.citizensnpcs.api.event.NPCLookCloseChangeTargetEvent
- setOwner(String) - Method in class net.citizensnpcs.api.trait.trait.Owner
-
Deprecated.
- setOwner(String, UUID) - Method in class net.citizensnpcs.api.trait.trait.Owner
-
Deprecated.
- setOwner(UUID) - Method in class net.citizensnpcs.api.trait.trait.Owner
- setOwner(CommandSender) - Method in class net.citizensnpcs.api.trait.trait.Owner
- setPathfind(boolean) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal
- setPathVectors(List<Vector>) - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint
-
Sets the path vectors that will be used at pathfinding time.
- setPathVectors(List<Vector>) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- setPaused(boolean) - Method in interface net.citizensnpcs.api.ai.GoalController
-
Sets whether the controller is paused.
- setPaused(boolean) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Sets whether the navigator is paused and shouldn't process the path for now.
- setPaused(boolean) - Method in class net.citizensnpcs.api.ai.SimpleGoalController
- setPersistent(String, Object) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Stores data at the given key.
- setPersistent(String, Object) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- setPersistent(NPC.Metadata, Object) - Method in interface net.citizensnpcs.api.npc.MetadataStore
-
Stores data at the given key.
- setPersistent(NPC.Metadata, Object) - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- setPlayerFilter(Function<Player, Boolean>) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
- setPlayers(Set<UUID>) - Method in class net.citizensnpcs.api.trait.trait.PlayerFilter
-
Implementation detail: may change in the future.
- setProtected(boolean) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- setProtected(boolean) - Method in interface net.citizensnpcs.api.npc.NPC
-
A helper method to set the NPC as protected or not protected from damage/entity target events.
- setRaw(String, Object) - Method in class net.citizensnpcs.api.util.DataKey
- setRaw(String, Object) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- setRaw(String, Object) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- setResult(Event.Result) - Method in class net.citizensnpcs.api.gui.CitizensInventoryClickEvent
- setSelected(NPC) - Method in class net.citizensnpcs.api.event.CitizensGetSelectedNPCEvent
- setSneaking(boolean) - Method in interface net.citizensnpcs.api.npc.NPC
- setSpawned(boolean) - Method in class net.citizensnpcs.api.trait.trait.Spawned
-
Sets whether an NPC should spawn during server starts or reloads.
- setStorageSupplier(Supplier<AStarStorage>) - Method in class net.citizensnpcs.api.astar.AStarMachine
-
Sets the
Supplier
to use to generate instances ofAStarStorage
for use while searching. - setStraightLineTarget(Entity, boolean) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Sets the current navigation to an entity target.
- setStraightLineTarget(Location) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Sets the current navigation to a
Location
destination. - setString(String, String) - Method in class net.citizensnpcs.api.util.DataKey
- setString(String, String) - Method in class net.citizensnpcs.api.util.MemoryDataKey
- setString(String, String) - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- setTalker(Entity) - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
-
Sets the talker.
- setTarget(Iterable<Vector>) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Sets the current navigation using a list of
Vector
s which will be moved between sequentially using the Citizens movement logic without pathfinding. - setTarget(Function<NavigatorParameters, PathStrategy>) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Sets the current navigation to the specified strategy.
- setTarget(Entity, boolean) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Sets the current navigation to an entity target.
- setTarget(Location) - Method in interface net.citizensnpcs.api.ai.Navigator
-
Sets the current navigation to a
Location
destination. - setTexture(String, SkullMeta) - Method in interface net.citizensnpcs.api.NMSHelper
- setTitle(String) - Method in class net.citizensnpcs.api.gui.MenuContext
- setTo(Location) - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- setTranslationPrefixProvider(Function<Command, String>) - Method in class net.citizensnpcs.api.command.CommandManager
- setType(EntityType) - Method in class net.citizensnpcs.api.trait.trait.MobType
-
Sets the type of mob that an NPC is.
- setUsage(String) - Method in exception class net.citizensnpcs.api.command.exception.CommandUsageException
- setUseMinecraftAI(boolean) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- setUseMinecraftAI(boolean) - Method in interface net.citizensnpcs.api.npc.NPC
-
Set the NPC to use Minecraft AI where possible.
- setVector(Vector) - Method in interface net.citizensnpcs.api.astar.pathfinder.PathPoint
-
Sets the vector location of this point
- setVector(Vector) - Method in class net.citizensnpcs.api.astar.pathfinder.VectorNode
- setXYRange(int, int) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal
- severe(Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- severeTr(String, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- SHOULD_SAVE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to save / persist across server restarts.
- shouldExamine(AStarNode) - Method in interface net.citizensnpcs.api.astar.AStarStorage
-
Returns whether to examine a given
AStarNode
. - shouldExamine(AStarNode) - Method in class net.citizensnpcs.api.astar.SimpleAStarStorage
- shouldExecute() - Method in class net.citizensnpcs.api.ai.goals.FollowPathGoal
- shouldExecute() - Method in class net.citizensnpcs.api.ai.goals.MoveToGoal
- shouldExecute() - Method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal
- shouldExecute() - Method in class net.citizensnpcs.api.ai.goals.WanderGoal
- shouldExecute() - Method in interface net.citizensnpcs.api.ai.tree.Behavior
-
Returns whether the behavior is ready to run.
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.Callback
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.Composite
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.Decorator
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.Empty
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.ForwardingBehaviorGoalAdapter
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.IfElse
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.Loop
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.RetryDecorator
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.StatusMapper
- shouldExecute() - Method in class net.citizensnpcs.api.ai.tree.TimerDecorator
- shouldExecute(GoalSelector) - Method in interface net.citizensnpcs.api.ai.Goal
-
Returns whether the goal is ready to start.
- shouldExecute(GoalSelector) - Method in class net.citizensnpcs.api.ai.tree.BehaviorGoalAdapter
- shouldRemoveFromPlayerList() - Method in interface net.citizensnpcs.api.npc.NPC
- shouldRemoveFromTabList() - Method in interface net.citizensnpcs.api.npc.NPC
- shouldSpawn() - Method in class net.citizensnpcs.api.trait.trait.Spawned
-
Gets whether an NPC should spawn during server starts or reloads.
- shouldTrackStats() - Method in class net.citizensnpcs.api.trait.TraitInfo
- shutdown() - Static method in class net.citizensnpcs.api.CitizensAPI
-
Shuts down any resources currently being held.
- SILENT - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to suppress sounds.
- SimpleAStarStorage - Class in net.citizensnpcs.api.astar
-
A base implementation of
AStarStorage
that uses aPriorityQueue
for the frontier andHashMap
s for the open/closed sets. - SimpleAStarStorage() - Constructor for class net.citizensnpcs.api.astar.SimpleAStarStorage
- SimpleGoalController - Class in net.citizensnpcs.api.ai
-
A simple
GoalController
implementation that stores goals as aArrayList
. - SimpleGoalController() - Constructor for class net.citizensnpcs.api.ai.SimpleGoalController
- SimpleGoalController.SimpleGoalSelector - Class in net.citizensnpcs.api.ai
- SimpleGoalEntry - Class in net.citizensnpcs.api.ai
- SimpleGoalEntry(Goal, int) - Constructor for class net.citizensnpcs.api.ai.SimpleGoalEntry
- SimpleGoalSelector() - Constructor for class net.citizensnpcs.api.ai.SimpleGoalController.SimpleGoalSelector
- SimpleMetadataStore - Class in net.citizensnpcs.api.npc
- SimpleMetadataStore() - Constructor for class net.citizensnpcs.api.npc.SimpleMetadataStore
- SimpleNPCDataStore - Class in net.citizensnpcs.api.npc
- SimpleNPCDataStore(Storage) - Constructor for class net.citizensnpcs.api.npc.SimpleNPCDataStore
- singleUse(Behavior) - Static method in class net.citizensnpcs.api.ai.tree.StatusMapper
- size() - Method in class net.citizensnpcs.api.ai.speech.SpeechContext
- size() - Method in interface net.citizensnpcs.api.npc.MetadataStore
- size() - Method in class net.citizensnpcs.api.npc.SimpleMetadataStore
- slot() - Element in annotation type net.citizensnpcs.api.gui.ClickHandler
-
The slot position to handle clicks for.
- slot() - Element in annotation type net.citizensnpcs.api.gui.MenuSlot
-
The position of the slot within the inventory.
- slots() - Element in annotation type net.citizensnpcs.api.gui.MenuPattern
- sorted() - Method in interface net.citizensnpcs.api.npc.NPCRegistry
-
Returns a sorted view of this registry, sorted by NPC id.
- SOUTH - Enum constant in enum net.citizensnpcs.api.hpastar.Direction
- spawn(Location) - Method in interface net.citizensnpcs.api.npc.NPC
-
Attempts to spawn this NPC.
- spawn(Location, SpawnReason) - Method in interface net.citizensnpcs.api.npc.NPC
-
Attempts to spawn this NPC.
- SPAWN_NODAMAGE_TICKS - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The initial no damage ticks on spawn, defaults to 20.
- Spawned - Class in net.citizensnpcs.api.trait.trait
-
Represents the spawn state of an NPC.
- Spawned() - Constructor for class net.citizensnpcs.api.trait.trait.Spawned
- SpawnReason - Enum in net.citizensnpcs.api.event
- speak(SpeechContext) - Method in interface net.citizensnpcs.api.ai.speech.SpeechController
-
Sends the speechController's
NPC
andSpeechContext
. - SpeechBystanderEvent - Class in net.citizensnpcs.api.ai.speech.event
- SpeechBystanderEvent(Talkable, SpeechContext, String) - Constructor for class net.citizensnpcs.api.ai.speech.event.SpeechBystanderEvent
- SpeechContext - Class in net.citizensnpcs.api.ai.speech
-
SpeechContext contains information about a
NPCSpeechEvent
, including theTalkable
talker, recipients, and message. - SpeechContext() - Constructor for class net.citizensnpcs.api.ai.speech.SpeechContext
- SpeechContext(String) - Constructor for class net.citizensnpcs.api.ai.speech.SpeechContext
- SpeechContext(String, Entity) - Constructor for class net.citizensnpcs.api.ai.speech.SpeechContext
- SpeechContext(NPC, String) - Constructor for class net.citizensnpcs.api.ai.speech.SpeechContext
- SpeechContext(NPC, String, Entity) - Constructor for class net.citizensnpcs.api.ai.speech.SpeechContext
- SpeechController - Interface in net.citizensnpcs.api.ai.speech
-
Represents the NPCs speech abilities.
- SpeechEvent - Class in net.citizensnpcs.api.ai.speech.event
- SpeechEvent(Talkable, SpeechContext, String) - Constructor for class net.citizensnpcs.api.ai.speech.event.SpeechEvent
- SpeechTargetedEvent - Class in net.citizensnpcs.api.ai.speech.event
-
Represents an event where a Talkable entity speaks to another Talkable entity.
- SpeechTargetedEvent(Talkable, SpeechContext, String) - Constructor for class net.citizensnpcs.api.ai.speech.event.SpeechTargetedEvent
- speed() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- speed(float) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Deprecated.
- speedModifier() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- speedModifier(float) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the movement speed modifier of the
Navigator
. - SpigotUtil - Class in net.citizensnpcs.api.util
- SpigotUtil() - Constructor for class net.citizensnpcs.api.util.SpigotUtil
- SpigotUtil.InventoryViewAPI - Class in net.citizensnpcs.api.util
-
Spigot has changed InventoryViews to be an abstract class instead of an interface necessitating an abstraction over the existing API to avoid java runtime errors.
- stationaryTicks() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- stationaryTicks(int) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the number of stationary ticks before navigation is cancelled with a
CancelReason
of STUCK. - StatusMapper - Class in net.citizensnpcs.api.ai.tree
-
Wraps an
Behavior
and returns a suppliedBehaviorStatus
instead of the underlying status. - stop() - Method in interface net.citizensnpcs.api.ai.PathStrategy
-
Forcibly stops pathfinding.
- stopExecution(Behavior) - Method in class net.citizensnpcs.api.ai.tree.Composite
- Storage - Interface in net.citizensnpcs.api.util
- store(NPC) - Method in class net.citizensnpcs.api.npc.MemoryNPCDataStore
- store(NPC) - Method in interface net.citizensnpcs.api.npc.NPCDataStore
-
Stores the given
NPC
into memory or to a disk representation. - store(NPC) - Method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- storeAll(NPCRegistry) - Method in class net.citizensnpcs.api.npc.MemoryNPCDataStore
- storeAll(NPCRegistry) - Method in interface net.citizensnpcs.api.npc.NPCDataStore
-
Stores all
NPC
s in the givenNPCRegistry
to disk. - storeAll(NPCRegistry) - Method in class net.citizensnpcs.api.npc.SimpleNPCDataStore
- straightLineTargetingDistance() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- straightLineTargetingDistance(float) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the distance (in blocks) at which the entity targeter will switch to simply following a straight line to the target instead of pathfinding.
- stringSetter(Supplier<String>, Consumer<String>) - Static method in class net.citizensnpcs.api.gui.InputMenus
- stripColor(String) - Static method in class net.citizensnpcs.api.util.Messaging
- STUCK - Enum constant in enum net.citizensnpcs.api.ai.event.CancelReason
- stuckAction() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Gets the
StuckAction
of these parameters. - stuckAction(StuckAction) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the
StuckAction
of the parameters. - StuckAction - Interface in net.citizensnpcs.api.ai
- SUCCESS - Enum constant in enum net.citizensnpcs.api.ai.tree.BehaviorStatus
-
Indicates that the
Behavior
has succeeded and can be terminated. - SWIM - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to allow swimming.
- SwimmingExaminer - Class in net.citizensnpcs.api.astar.pathfinder
- SwimmingExaminer(NPC) - Constructor for class net.citizensnpcs.api.astar.pathfinder.SwimmingExaminer
T
- talk(SpeechContext) - Static method in class net.citizensnpcs.api.CitizensAPI
- talk(SpeechContext) - Method in interface net.citizensnpcs.api.CitizensPlugin
- Talkable - Interface in net.citizensnpcs.api.ai.speech
-
Talkable provides an interface for talking to Players, Entities and NPCs.
- TalkableEntity - Class in net.citizensnpcs.api.ai.speech
- TalkableEntity(NPC) - Constructor for class net.citizensnpcs.api.ai.speech.TalkableEntity
- TalkableEntity(Entity) - Constructor for class net.citizensnpcs.api.ai.speech.TalkableEntity
- talkNear(SpeechContext, String) - Method in interface net.citizensnpcs.api.ai.speech.Talkable
-
Called when talking near this Talkable Entity to provide a universal method to getting an event/output.
- talkNear(SpeechContext, String) - Method in class net.citizensnpcs.api.ai.speech.TalkableEntity
- talkTo(SpeechContext, String) - Method in interface net.citizensnpcs.api.ai.speech.Talkable
-
Called when talking to this Talkable Entity to provide a universal method to getting an event/output.
- talkTo(SpeechContext, String) - Method in class net.citizensnpcs.api.ai.speech.TalkableEntity
- TARGET_DIED - Enum constant in enum net.citizensnpcs.api.ai.event.CancelReason
- TARGET_MOVED_WORLD - Enum constant in enum net.citizensnpcs.api.ai.event.CancelReason
- targetFilter(Function<Entity, Boolean>) - Method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal.Builder
- TargetNearbyEntityGoal - Class in net.citizensnpcs.api.ai.goals
-
A sample
Goal
/Behavior
that will target specificEntityType
s within a certain radius and start following them usingNavigator.setTarget(Entity, boolean)
. - TargetNearbyEntityGoal.Builder - Class in net.citizensnpcs.api.ai.goals
- targets(Set<EntityType>) - Method in class net.citizensnpcs.api.ai.goals.TargetNearbyEntityGoal.Builder
- TargetType - Enum in net.citizensnpcs.api.ai
- teleport(Location, PlayerTeleportEvent.TeleportCause) - Method in class net.citizensnpcs.api.npc.AbstractNPC
- teleport(Location, PlayerTeleportEvent.TeleportCause) - Method in interface net.citizensnpcs.api.npc.NPC
-
An alternative to
npc.getEntity().getLocation()
that teleports passengers as well. - TeleportStuckAction - Class in net.citizensnpcs.api.ai
- Template - Class in net.citizensnpcs.api.npc.templates
- TemplateRegistry - Class in net.citizensnpcs.api.npc.templates
- TemplateRegistry(Path) - Constructor for class net.citizensnpcs.api.npc.templates.TemplateRegistry
- TemplateWorkspace - Class in net.citizensnpcs.api.npc.templates
- TemplateWorkspace(File) - Constructor for class net.citizensnpcs.api.npc.templates.TemplateWorkspace
- TEXT_DISPLAY_COMPONENT - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
- tickLimiter(Behavior, int) - Static method in class net.citizensnpcs.api.ai.tree.TimerDecorator
- tickParallel() - Method in class net.citizensnpcs.api.ai.tree.Composite
- TIMED_RESPAWN - Enum constant in enum net.citizensnpcs.api.event.SpawnReason
- TimerDecorator - Class in net.citizensnpcs.api.ai.tree
-
Wraps a
Behavior
and enforces a tick limit, after which it will returnBehaviorStatus.FAILURE
and reset the childBehavior
. - title() - Element in annotation type net.citizensnpcs.api.gui.Menu
-
The menu title.
- title() - Element in annotation type net.citizensnpcs.api.gui.MenuSlot
-
The display name of the inventory item.
- toBukkit() - Method in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
- toBukkit() - Method in class net.citizensnpcs.api.util.BoundingBox
- toDimensions() - Method in class net.citizensnpcs.api.util.BoundingBox
- toggle(String, Consumer<List<InputMenus.Choice<T>>>, InputMenus.Choice<T>...) - Static method in class net.citizensnpcs.api.gui.InputMenus
- TOGGLE - Enum constant in enum net.citizensnpcs.api.gui.InputMenus.Choice.Type
- toggler(Consumer<Boolean>, boolean) - Static method in class net.citizensnpcs.api.gui.InputMenus
- TOO_FEW_ARGUMENTS - Static variable in class net.citizensnpcs.api.command.CommandMessages
- TOO_MANY_ARGUMENTS - Static variable in class net.citizensnpcs.api.command.CommandMessages
- toString() - Method in class net.citizensnpcs.api.ai.TeleportStuckAction
- toString() - Method in class net.citizensnpcs.api.ai.tree.ForwardingBehaviorGoalAdapter
- toString() - Method in class net.citizensnpcs.api.ai.tree.Selector
- toString() - Method in class net.citizensnpcs.api.ai.tree.Sequence
- toString() - Method in class net.citizensnpcs.api.astar.pathfinder.Path
- toString() - Method in class net.citizensnpcs.api.astar.SimpleAStarStorage
- toString() - Method in class net.citizensnpcs.api.event.NPCMoveEvent
- toString() - Method in class net.citizensnpcs.api.hpastar.HPACluster
- toString() - Method in class net.citizensnpcs.api.hpastar.HPAGraphAStarNode
- toString() - Method in class net.citizensnpcs.api.hpastar.HPAGraphNode
- toString() - Method in class net.citizensnpcs.api.trait.trait.Inventory
- toString() - Method in class net.citizensnpcs.api.trait.trait.MobType
- toString() - Method in class net.citizensnpcs.api.trait.trait.Owner
- toString() - Method in class net.citizensnpcs.api.trait.trait.Spawned
- toString() - Method in class net.citizensnpcs.api.util.BoundingBox
- toString() - Method in class net.citizensnpcs.api.util.EntityDim
- toString() - Method in class net.citizensnpcs.api.util.MemoryDataKey
- toString() - Method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- toString() - Method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- toString() - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- toString() - Method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- toString() - Method in class net.citizensnpcs.api.util.YamlStorage
- toString() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists
- toString() - Method in class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- tr(String, Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- TRACKING_RANGE - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
The tracking distance for packets.
- Trait - Class in net.citizensnpcs.api.trait
-
Represents a Trait linked to an
NPC
that can be loaded and saved. - Trait(String) - Constructor for class net.citizensnpcs.api.trait.Trait
- TraitEventHandler - Annotation Type in net.citizensnpcs.api.trait
- TraitEventHandler.NPCEventExtractor - Interface in net.citizensnpcs.api.trait
- TraitFactory - Interface in net.citizensnpcs.api.trait
- TraitInfo - Class in net.citizensnpcs.api.trait
-
Builds a trait.
- TraitName - Annotation Type in net.citizensnpcs.api.trait
-
A helper annotation to specify trait name for
TraitInfo
. - traits - Variable in class net.citizensnpcs.api.npc.AbstractNPC
- traits() - Element in annotation type net.citizensnpcs.api.command.Requirements
- transition(Class<? extends InventoryMenuPage>) - Method in class net.citizensnpcs.api.gui.InventoryMenu
-
Transition to another page.
- transition(Class<? extends InventoryMenuPage>, Map<String, Object>) - Method in class net.citizensnpcs.api.gui.InventoryMenu
-
Transition to another page with context.
- transition(InventoryMenuPage) - Method in class net.citizensnpcs.api.gui.InventoryMenu
-
Transition to another page.
- transition(InventoryMenuPage, Map<String, Object>) - Method in class net.citizensnpcs.api.gui.InventoryMenu
-
Transition to another page with context.
- transitionBack() - Method in class net.citizensnpcs.api.gui.InventoryMenu
- transitions() - Element in annotation type net.citizensnpcs.api.gui.MenuPattern
- translate(String, Object...) - Static method in class net.citizensnpcs.api.util.Translator
- Translator - Class in net.citizensnpcs.api.util
- tree(Supplier<PhTreeSolid<Boolean>>) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
- tryCreateInstance() - Method in class net.citizensnpcs.api.trait.TraitInfo
- tryTranslate(Object) - Static method in class net.citizensnpcs.api.util.Messaging
- type() - Element in annotation type net.citizensnpcs.api.gui.Menu
-
The inventory type.
- types() - Element in annotation type net.citizensnpcs.api.command.Requirements
U
- UnhandledCommandException - Exception Class in net.citizensnpcs.api.command.exception
- UnhandledCommandException() - Constructor for exception class net.citizensnpcs.api.command.exception.UnhandledCommandException
- UNKNOWN_COMMAND - Static variable in class net.citizensnpcs.api.command.CommandMessages
- unlimited(Behavior) - Static method in class net.citizensnpcs.api.ai.tree.RetryDecorator
- unloadEvents() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- UNPASSABLE - Enum constant in enum net.citizensnpcs.api.astar.pathfinder.BlockExaminer.PassableState
- unpause() - Method in class net.citizensnpcs.api.ai.goals.WanderGoal
- update() - Method in interface net.citizensnpcs.api.ai.PathStrategy
-
Updates and runs the pathfinding strategy on its current NPC and destination.
- update() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- update(Agent) - Method in class net.citizensnpcs.api.astar.pathfinder.Path
- update(Agent) - Method in interface net.citizensnpcs.api.astar.Plan
-
Updates the plan.
- updateInventoryTitle(Player, SpigotUtil.InventoryViewAPI, String) - Method in interface net.citizensnpcs.api.NMSHelper
- updatePathRate() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- updatePathRate(int) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets the update path rate, in ticks (default 20).
- usage() - Element in annotation type net.citizensnpcs.api.command.Command
-
Command usage string that is displayed when an error occurs with the command processing.
- USE_MINECRAFT_AI - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to use Minecraft AI.
- useMinecraftAI() - Method in class net.citizensnpcs.api.npc.AbstractNPC
- useMinecraftAI() - Method in interface net.citizensnpcs.api.npc.NPC
-
Whether the NPC is currently set to use Minecraft AI.
- useNewPathfinder() - Method in class net.citizensnpcs.api.ai.NavigatorParameters
- useNewPathfinder(boolean) - Method in class net.citizensnpcs.api.ai.NavigatorParameters
-
Sets whether or not to use an A* pathfinder defined in
AStarMachine
for pathfinding. - USING_HELD_ITEM - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether player is actively using held item.
- USING_OFFHAND_ITEM - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether player is actively using offhand item.
- UUIDPersister - Class in net.citizensnpcs.api.persistence
- UUIDPersister() - Constructor for class net.citizensnpcs.api.persistence.UUIDPersister
V
- validate(CommandContext, CommandSender, NPC, String) - Method in class net.citizensnpcs.api.command.Arg.FlagValidator.Identity
- validate(CommandContext, CommandSender, NPC, String) - Method in interface net.citizensnpcs.api.command.Arg.FlagValidator
- validator() - Element in annotation type net.citizensnpcs.api.command.Arg
- validator() - Element in annotation type net.citizensnpcs.api.command.Flag
- value() - Element in annotation type net.citizensnpcs.api.command.Arg
- value() - Element in annotation type net.citizensnpcs.api.command.Flag
- value() - Element in annotation type net.citizensnpcs.api.gui.ClickHandlers
- value() - Element in annotation type net.citizensnpcs.api.gui.MenuPattern
-
The pattern string.
- value() - Element in annotation type net.citizensnpcs.api.gui.MenuPatterns
- value() - Element in annotation type net.citizensnpcs.api.gui.MenuSlots
- value() - Element in annotation type net.citizensnpcs.api.gui.MenuTransition
-
The next sub-menu class to transition to.
- value() - Element in annotation type net.citizensnpcs.api.gui.MenuTransitions
- value() - Element in annotation type net.citizensnpcs.api.persistence.DelegatePersistence
- value() - Element in annotation type net.citizensnpcs.api.persistence.Persist
-
The DataKey path to use when saving/loading.
- value() - Element in annotation type net.citizensnpcs.api.trait.TraitEventHandler
- value() - Element in annotation type net.citizensnpcs.api.trait.TraitName
- valueFlags - Variable in class net.citizensnpcs.api.command.CommandContext
- valueFlags() - Element in annotation type net.citizensnpcs.api.command.Command
-
List of value flags (without --).
- valueFlags() - Method in class net.citizensnpcs.api.command.CommandManager.CommandInfo
- valueOf(String) - Static method in enum net.citizensnpcs.api.ai.event.CancelReason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.ai.TargetType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.ai.tree.BehaviorStatus
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.astar.pathfinder.BlockExaminer.PassableState
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.event.DespawnReason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.event.SpawnReason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.gui.InputMenus.Choice.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.hpastar.Direction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.hpastar.HPAGraphEdge.EdgeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.npc.NPC.NPCUpdate
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.citizensnpcs.api.trait.trait.PlayerFilter.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- valueOf(String) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- valueOf(String) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- valueOf(String) - Static method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- valueOf(String) - Static method in enum net.citizensnpcs.api.util.RemoveReason
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum net.citizensnpcs.api.ai.event.CancelReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.ai.TargetType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.ai.tree.BehaviorStatus
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.astar.pathfinder.BlockExaminer.PassableState
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.event.DespawnReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.event.SpawnReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.gui.InputMenus.Choice.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.hpastar.Direction
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.hpastar.HPAGraphEdge.EdgeType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.npc.NPC.NPCUpdate
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.trait.trait.Equipment.EquipmentSlot
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.citizensnpcs.api.trait.trait.PlayerFilter.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in class net.citizensnpcs.api.util.OldEnumCompat.CatTypeEnum
- values() - Static method in class net.citizensnpcs.api.util.OldEnumCompat.FrogVariantEnum
- values() - Static method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- values() - Static method in class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
- values() - Static method in enum net.citizensnpcs.api.util.RemoveReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
- valueType() - Element in annotation type net.citizensnpcs.api.persistence.Persist
-
The specific value type to use when deserialising values from storage.
- VectorGoal - Class in net.citizensnpcs.api.astar.pathfinder
- VectorGoal(Location, float) - Constructor for class net.citizensnpcs.api.astar.pathfinder.VectorGoal
- VectorNode - Class in net.citizensnpcs.api.astar.pathfinder
- VectorNode(VectorGoal, Location, BlockSource, BlockExaminer...) - Constructor for class net.citizensnpcs.api.astar.pathfinder.VectorNode
- VectorNode(VectorNode, VectorGoal, Vector, BlockSource, BlockExaminer...) - Constructor for class net.citizensnpcs.api.astar.pathfinder.VectorNode
- VectorNode(VectorNode, Vector, VectorNode.PathInfo) - Constructor for class net.citizensnpcs.api.astar.pathfinder.VectorNode
- VectorPersister - Class in net.citizensnpcs.api.persistence
- VectorPersister() - Constructor for class net.citizensnpcs.api.persistence.VectorPersister
- VILLAGER_BLOCK_TRADES - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Whether to block Minecraft villager trades.
- VillagerProfessionEnum(Villager.Profession) - Constructor for class net.citizensnpcs.api.util.OldEnumCompat.VillagerProfessionEnum
- VillagerTypeEnum(Villager.Type) - Constructor for class net.citizensnpcs.api.util.OldEnumCompat.VillagerTypeEnum
W
- walkable(int, int, int) - Method in class net.citizensnpcs.api.hpastar.HPAGraph
- WanderGoal - Class in net.citizensnpcs.api.ai.goals
- WanderGoal.Builder - Class in net.citizensnpcs.api.ai.goals
- warn(Object...) - Static method in class net.citizensnpcs.api.util.Messaging
- WATER_SPEED_MODIFIER - Enum constant in enum net.citizensnpcs.api.npc.NPC.Metadata
-
Speed modifier in water, percentage.
- WEST - Enum constant in enum net.citizensnpcs.api.hpastar.Direction
- width - Variable in class net.citizensnpcs.api.util.EntityDim
- withName(String) - Method in class net.citizensnpcs.api.trait.TraitInfo
- withPreRunCallback(Runnable) - Method in class net.citizensnpcs.api.ai.tree.Decorator.Builder
- withResetCallback(Runnable) - Method in class net.citizensnpcs.api.ai.tree.Decorator.Builder
- withShouldExecutePredicate(Predicate<Boolean>) - Method in class net.citizensnpcs.api.ai.tree.Decorator.Builder
- withStatusTransformer(Function<BehaviorStatus, BehaviorStatus>) - Method in class net.citizensnpcs.api.ai.tree.Decorator.Builder
- withSupplier(Supplier<? extends Trait>) - Method in class net.citizensnpcs.api.trait.TraitInfo
- world - Variable in class net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource
- WORLD_UNLOAD - Enum constant in enum net.citizensnpcs.api.event.DespawnReason
- worldguardRegion(Supplier<Object>) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
- wrapHeader(Object) - Static method in class net.citizensnpcs.api.util.Paginator
- WrappedCommandException - Exception Class in net.citizensnpcs.api.command.exception
- WrappedCommandException(Throwable) - Constructor for exception class net.citizensnpcs.api.command.exception.WrappedCommandException
- wrapping(Behavior) - Static method in class net.citizensnpcs.api.ai.tree.Decorator
- wrappingPrecondition(Behavior, Condition) - Static method in class net.citizensnpcs.api.ai.tree.Precondition
X
- xrange(int) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
Y
- YamlKey(String) - Constructor for class net.citizensnpcs.api.util.YamlStorageWithLists.YamlKey
- YamlReplacementAction - Class in net.citizensnpcs.api.npc.templates
- YamlStorage - Class in net.citizensnpcs.api.util
- YamlStorage(File) - Constructor for class net.citizensnpcs.api.util.YamlStorage
- YamlStorage(File, String) - Constructor for class net.citizensnpcs.api.util.YamlStorage
- YamlStorageWithLists - Class in net.citizensnpcs.api.util
- YamlStorageWithLists(File) - Constructor for class net.citizensnpcs.api.util.YamlStorageWithLists
- YamlStorageWithLists(File, String) - Constructor for class net.citizensnpcs.api.util.YamlStorageWithLists
- YamlStorageWithLists.YamlKey - Class in net.citizensnpcs.api.util
- yrange(int) - Method in class net.citizensnpcs.api.ai.goals.WanderGoal.Builder
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
NPC.getOrAddTrait(Class)
for the same behavior.