public class Citizens extends JavaPlugin implements net.citizensnpcs.api.CitizensPlugin
Constructor and Description |
---|
Citizens() |
Modifier and Type | Method and Description |
---|---|
net.citizensnpcs.api.npc.NPCRegistry |
createAnonymousNPCRegistry(net.citizensnpcs.api.npc.NPCDataStore store) |
net.citizensnpcs.api.npc.NPCRegistry |
createNamedNPCRegistry(String name,
net.citizensnpcs.api.npc.NPCDataStore store) |
net.citizensnpcs.api.command.CommandManager.CommandInfo |
getCommandInfo(String rootCommand,
String modifier) |
Iterable<net.citizensnpcs.api.command.CommandManager.CommandInfo> |
getCommands(String base) |
net.citizensnpcs.api.npc.NPCSelector |
getDefaultNPCSelector() |
net.citizensnpcs.api.npc.NPCRegistry |
getNamedNPCRegistry(String name) |
Iterable<net.citizensnpcs.api.npc.NPCRegistry> |
getNPCRegistries() |
net.citizensnpcs.api.npc.NPCRegistry |
getNPCRegistry() |
NPCSelector |
getNPCSelector() |
ClassLoader |
getOwningClassLoader() |
File |
getScriptFolder() |
net.citizensnpcs.api.SkullMetaProvider |
getSkullMetaProvider() |
net.citizensnpcs.api.ai.speech.SpeechFactory |
getSpeechFactory() |
net.citizensnpcs.api.trait.TraitFactory |
getTraitFactory() |
boolean |
onCommand(CommandSender sender,
Command command,
String cmdName,
String[] args) |
void |
onDisable() |
void |
onEnable() |
void |
onImplementationChanged() |
void |
registerCommandClass(Class<?> clazz) |
void |
reload() |
void |
removeNamedNPCRegistry(String name) |
void |
setDefaultNPCDataStore(net.citizensnpcs.api.npc.NPCDataStore store) |
void |
storeNPCs() |
void |
storeNPCs(net.citizensnpcs.api.command.CommandContext args) |
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
equals, getName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getName, getPluginLoader, getResource, getServer, isEnabled, isNaggable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable
onTabComplete
public net.citizensnpcs.api.npc.NPCRegistry createAnonymousNPCRegistry(net.citizensnpcs.api.npc.NPCDataStore store)
createAnonymousNPCRegistry
in interface net.citizensnpcs.api.CitizensPlugin
public net.citizensnpcs.api.npc.NPCRegistry createNamedNPCRegistry(String name, net.citizensnpcs.api.npc.NPCDataStore store)
createNamedNPCRegistry
in interface net.citizensnpcs.api.CitizensPlugin
public net.citizensnpcs.api.command.CommandManager.CommandInfo getCommandInfo(String rootCommand, String modifier)
public Iterable<net.citizensnpcs.api.command.CommandManager.CommandInfo> getCommands(String base)
public net.citizensnpcs.api.npc.NPCSelector getDefaultNPCSelector()
getDefaultNPCSelector
in interface net.citizensnpcs.api.CitizensPlugin
public net.citizensnpcs.api.npc.NPCRegistry getNamedNPCRegistry(String name)
getNamedNPCRegistry
in interface net.citizensnpcs.api.CitizensPlugin
public Iterable<net.citizensnpcs.api.npc.NPCRegistry> getNPCRegistries()
getNPCRegistries
in interface net.citizensnpcs.api.CitizensPlugin
public net.citizensnpcs.api.npc.NPCRegistry getNPCRegistry()
getNPCRegistry
in interface net.citizensnpcs.api.CitizensPlugin
public NPCSelector getNPCSelector()
public ClassLoader getOwningClassLoader()
getOwningClassLoader
in interface net.citizensnpcs.api.CitizensPlugin
public File getScriptFolder()
getScriptFolder
in interface net.citizensnpcs.api.CitizensPlugin
public net.citizensnpcs.api.SkullMetaProvider getSkullMetaProvider()
getSkullMetaProvider
in interface net.citizensnpcs.api.CitizensPlugin
public net.citizensnpcs.api.ai.speech.SpeechFactory getSpeechFactory()
getSpeechFactory
in interface net.citizensnpcs.api.CitizensPlugin
public net.citizensnpcs.api.trait.TraitFactory getTraitFactory()
getTraitFactory
in interface net.citizensnpcs.api.CitizensPlugin
public boolean onCommand(CommandSender sender, Command command, String cmdName, String[] args)
onCommand
in interface CommandExecutor
onCommand
in class JavaPlugin
public void onDisable()
onDisable
in interface Plugin
onDisable
in class JavaPlugin
public void onEnable()
onEnable
in interface Plugin
onEnable
in class JavaPlugin
public void onImplementationChanged()
onImplementationChanged
in interface net.citizensnpcs.api.CitizensPlugin
public void registerCommandClass(Class<?> clazz)
public void reload() throws net.citizensnpcs.api.exception.NPCLoadException
net.citizensnpcs.api.exception.NPCLoadException
public void removeNamedNPCRegistry(String name)
removeNamedNPCRegistry
in interface net.citizensnpcs.api.CitizensPlugin
public void setDefaultNPCDataStore(net.citizensnpcs.api.npc.NPCDataStore store)
setDefaultNPCDataStore
in interface net.citizensnpcs.api.CitizensPlugin
public void storeNPCs()
public void storeNPCs(net.citizensnpcs.api.command.CommandContext args)
Copyright © 2019. All rights reserved.