Package net.citizensnpcs
Class Citizens
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
net.citizensnpcs.Citizens
- All Implemented Interfaces:
- CitizensPlugin,- CommandExecutor,- TabCompleter,- TabExecutor,- Plugin
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateNamedNPCRegistry(String name, NPCDataStore store) Gets the CitizensLocationLookupgetNamedNPCRegistry(String name) Get all registeredNPCRegistrys.Gets the defaultNPCRegistry.getShops()Gets the TraitFactory.booleanonCommand(CommandSender sender, Command command, String cmdName, String[] args) voidvoidvoidonEnable()voidCalled when the current Citizens implementation is changedvoidregisterCommandClass(Class<?> clazz) voidreload()voidremoveNamedNPCRegistry(String name) Removes the named NPCRegistry with the given name.voidSets the default NPC data store.voidvoidstoreNPCs(boolean async) voidtalk(SpeechContext context) Methods inherited from class org.bukkit.plugin.java.JavaPlugingetClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBaseequals, getName, hashCodeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.PlugingetConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLogger, getName, getPluginLoader, getResource, getServer, isEnabled, isNaggable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggableMethods inherited from interface org.bukkit.command.TabCompleteronTabComplete
- 
Constructor Details- 
Citizenspublic Citizens()
 
- 
- 
Method Details- 
createAnonymousNPCRegistry- Specified by:
- createAnonymousNPCRegistryin interface- CitizensPlugin
- Parameters:
- store- The data store of the registry
- Returns:
- A new anonymous NPCRegistry that is not accessible via CitizensPlugin.getNamedNPCRegistry(String)
 
- 
createNamedNPCRegistry- Specified by:
- createNamedNPCRegistryin interface- CitizensPlugin
- Parameters:
- name- The plugin name
- store- The data store for the registry
- Returns:
- A new NPCRegistry, that can also be retrieved via CitizensPlugin.getNamedNPCRegistry(String)
 
- 
getCommandManager- Specified by:
- getCommandManagerin interface- CitizensPlugin
 
- 
getDefaultNPCDataStore
- 
getDefaultNPCSelector- Specified by:
- getDefaultNPCSelectorin interface- CitizensPlugin
- Returns:
- The default NPCSelectorfor managing player/server NPC selection
 
- 
getLocationLookupDescription copied from interface:CitizensPluginGets the CitizensLocationLookup- Specified by:
- getLocationLookupin interface- CitizensPlugin
- Returns:
 
- 
getNamedNPCRegistry- Specified by:
- getNamedNPCRegistryin interface- CitizensPlugin
- Parameters:
- name- The plugin name
- Returns:
- A NPCRegistry previously created via CitizensPlugin.createNamedNPCRegistry(String, NPCDataStore), or null if not found
 
- 
getNMSHelper- Specified by:
- getNMSHelperin interface- CitizensPlugin
 
- 
getNPCRegistriesDescription copied from interface:CitizensPluginGet all registeredNPCRegistrys.- Specified by:
- getNPCRegistriesin interface- CitizensPlugin
 
- 
getNPCRegistryDescription copied from interface:CitizensPluginGets the defaultNPCRegistry.- Specified by:
- getNPCRegistryin interface- CitizensPlugin
- Returns:
- The NPC registry
 
- 
getNPCSelector
- 
getOwningClassLoader- Specified by:
- getOwningClassLoaderin interface- CitizensPlugin
 
- 
getProtocolLibListener
- 
getShops
- 
getTemplateRegistry- Specified by:
- getTemplateRegistryin interface- CitizensPlugin
 
- 
getTemporaryNPCRegistry- Specified by:
- getTemporaryNPCRegistryin interface- CitizensPlugin
 
- 
getTraitFactoryDescription copied from interface:CitizensPluginGets the TraitFactory.- Specified by:
- getTraitFactoryin interface- CitizensPlugin
- Returns:
- Citizens trait factory
 
- 
onCommand- Specified by:
- onCommandin interface- CommandExecutor
- Overrides:
- onCommandin class- JavaPlugin
 
- 
onDependentPluginDisablepublic void onDependentPluginDisable()
- 
onDisablepublic void onDisable()- Specified by:
- onDisablein interface- Plugin
- Overrides:
- onDisablein class- JavaPlugin
 
- 
onEnablepublic void onEnable()- Specified by:
- onEnablein interface- Plugin
- Overrides:
- onEnablein class- JavaPlugin
 
- 
onImplementationChangedpublic void onImplementationChanged()Description copied from interface:CitizensPluginCalled when the current Citizens implementation is changed- Specified by:
- onImplementationChangedin interface- CitizensPlugin
 
- 
registerCommandClass
- 
reload- Throws:
- NPCLoadException
 
- 
removeNamedNPCRegistryDescription copied from interface:CitizensPluginRemoves the named NPCRegistry with the given name.- Specified by:
- removeNamedNPCRegistryin interface- CitizensPlugin
 
- 
setDefaultNPCDataStoreDescription copied from interface:CitizensPluginSets the default NPC data store. Should be set during onEnable.- Specified by:
- setDefaultNPCDataStorein interface- CitizensPlugin
- Parameters:
- store- The new default store
 
- 
storeNPCspublic void storeNPCs()
- 
storeNPCspublic void storeNPCs(boolean async) 
- 
talk- Specified by:
- talkin interface- CitizensPlugin
 
 
-