Uses of Class
top.focess.qq.api.plugin.Plugin
-
-
Uses of Plugin in top.focess.qq
Subclasses of Plugin in top.focess.qq Modifier and Type Class Description static classFocessQQ.MainPluginThe MainPlugin Plugin is a core plugin in Bot.Methods in top.focess.qq that return Plugin Modifier and Type Method Description static PluginFocessQQ. getMainPlugin()static @Nullable PluginFocessQQ. getPlugin(Class<? extends Plugin> cls)Get the plugin by its classstatic @Nullable PluginFocessQQ. getPlugin(String name)Get the plugin by its nameMethods in top.focess.qq that return types with arguments of type Plugin Modifier and Type Method Description static @NonNull List<Plugin>FocessQQ. getPlugins()Get all the loaded pluginsMethod parameters in top.focess.qq with type arguments of type Plugin Modifier and Type Method Description static @Nullable PluginFocessQQ. getPlugin(Class<? extends Plugin> cls)Get the plugin by its class -
Uses of Plugin in top.focess.qq.api.bot
Methods in top.focess.qq.api.bot that return Plugin Modifier and Type Method Description PluginBot. getPlugin()Get the plugin of the botMethods in top.focess.qq.api.bot with parameters of type Plugin Modifier and Type Method Description Future<Bot>BotManager. login(long id, String password, Plugin plugin)Login and get the bot with id and passwordBotBotManager. loginDirectly(long id, String password, Plugin plugin)Login and get the bot with id and password This is a blocking method -
Uses of Plugin in top.focess.qq.api.command
Methods in top.focess.qq.api.command that return Plugin Modifier and Type Method Description PluginCommand. getPlugin()PluginDataCollection. getPlugin()Get Plugin argument in orderMethods in top.focess.qq.api.command that return types with arguments of type Plugin Modifier and Type Method Description Class<? extends Plugin>plugin()Set the plugin the command belongs toMethods in top.focess.qq.api.command with parameters of type Plugin Modifier and Type Method Description static voidCommand. register(Plugin plugin, Command command)Register the commandstatic voidDataCollection. register(Plugin plugin, DataConverter<?> dataConverter, DataCollection.BufferGetter bufferGetter)Register the getter of the bufferstatic voidCommand. unregister(Plugin plugin)Unregister all commands in the pluginstatic voidDataCollection. unregister(Plugin plugin)Unregister the getter of the buffers by plugin -
Uses of Plugin in top.focess.qq.api.command.converter
Methods in top.focess.qq.api.command.converter that return Plugin Modifier and Type Method Description PluginPluginDataConverter. convert(String arg)Methods in top.focess.qq.api.command.converter that return types with arguments of type Plugin Modifier and Type Method Description protected Class<Plugin>PluginDataConverter. getTargetClass() -
Uses of Plugin in top.focess.qq.api.command.data
Methods in top.focess.qq.api.command.data that return Plugin Modifier and Type Method Description PluginPluginBuffer. get()PluginPluginBuffer. get(int index)Methods in top.focess.qq.api.command.data with parameters of type Plugin Modifier and Type Method Description voidPluginBuffer. put(Plugin plugin) -
Uses of Plugin in top.focess.qq.api.event
Methods in top.focess.qq.api.event that return Plugin Modifier and Type Method Description default PluginListener. getPlugin()Get the plugin that this listener belongs toMethods in top.focess.qq.api.event with parameters of type Plugin Modifier and Type Method Description static voidListenerHandler. register(Plugin plugin, Listener listener)Add the listener and bundle to the pluginstatic voidListenerHandler. unregister(Plugin plugin)Unregister all listeners bundle to the plugin -
Uses of Plugin in top.focess.qq.api.event.plugin
Methods in top.focess.qq.api.event.plugin that return Plugin Modifier and Type Method Description PluginPluginEvent. getPlugin()Constructors in top.focess.qq.api.event.plugin with parameters of type Plugin Constructor Description PluginEvent(Plugin plugin)Constructs a PluginEventPluginLoadEvent(Plugin plugin)Constructs a PluginLoadEventPluginUnloadEvent(Plugin plugin)Constructs a PluginUnloadEvent -
Uses of Plugin in top.focess.qq.api.net
Methods in top.focess.qq.api.net with parameters of type Plugin Modifier and Type Method Description <T extends Packet>
voidClientReceiver. register(Plugin plugin, Class<T> c, PackHandler<T> packHandler)Register packet handler for server<T extends Packet>
voidServerReceiver. register(Plugin plugin, String client, Class<T> c, PackHandler<T> packHandler)Register packet handler for special clientvoidReceiver. unregister(Plugin plugin)Unregister the packet handlers of the pluginvoidSocket. unregister(Plugin plugin)Unregister the packet-handlers of the plugin -
Uses of Plugin in top.focess.qq.api.plugin
Subclasses of Plugin in top.focess.qq.api.plugin Modifier and Type Class Description classLazyPluginThis is lazy version of the plugin.Methods in top.focess.qq.api.plugin that return Plugin Modifier and Type Method Description static @Nullable PluginPlugin. getPlugin(Class<? extends Plugin> plugin)Get Plugin instance by the class instancestatic @Nullable PluginPlugin. getPlugin(String name)Get Plugin instance by the namestatic @Nullable PluginPlugin. thisPlugin()Method parameters in top.focess.qq.api.plugin with type arguments of type Plugin Modifier and Type Method Description static @Nullable PluginPlugin. getPlugin(Class<? extends Plugin> plugin)Get Plugin instance by the class instanceConstructor parameters in top.focess.qq.api.plugin with type arguments of type Plugin Constructor Description PluginLoadException(Class<? extends Plugin> c, Exception e)Constructs a PluginLoadException -
Uses of Plugin in top.focess.qq.api.schedule
Methods in top.focess.qq.api.schedule that return Plugin Modifier and Type Method Description PluginScheduler. getPlugin()Get the pluginPluginTask. getPlugin()Get the plugin it belongs toMethods in top.focess.qq.api.schedule with parameters of type Plugin Modifier and Type Method Description static voidSchedulers. close(Plugin plugin)Close all the schedulers belonging to the pluginstatic SchedulerSchedulers. newFocessScheduler(Plugin plugin)New a FocessScheduler, the scheduler will run all tasks in time order.static SchedulerSchedulers. newFocessScheduler(Plugin plugin, String name)New a FocessScheduler, the scheduler will run all tasks in time order.static SchedulerSchedulers. newThreadPoolScheduler(Plugin plugin, int poolSize)New a ThreadPoolScheduler, the scheduler can run tasks in parallel.static SchedulerSchedulers. newThreadPoolScheduler(Plugin plugin, int poolSize, boolean immediate, String name)New a ThreadPoolScheduler, the scheduler can run tasks in parallel. -
Uses of Plugin in top.focess.qq.api.util.network
Methods in top.focess.qq.api.util.network that return Plugin Modifier and Type Method Description PluginHttpResponse. getPlugin()PluginNetworkHandler. getPlugin()Methods in top.focess.qq.api.util.network with parameters of type Plugin Modifier and Type Method Description static HttpResponseHttpResponse. ofNull(Plugin plugin)Constructors in top.focess.qq.api.util.network with parameters of type Plugin Constructor Description HttpResponse(Plugin plugin, int code, okhttp3.Headers headers, String value)Initialize a HttpResponse without exceptionsHttpResponse(Plugin plugin, Exception e)Initialize an exception thrown HttpResponse with eNetworkHandler(Plugin plugin) -
Uses of Plugin in top.focess.qq.core.bot
Methods in top.focess.qq.core.bot that return Plugin Modifier and Type Method Description PluginSimpleBot. getPlugin()Methods in top.focess.qq.core.bot with parameters of type Plugin Modifier and Type Method Description Future<Bot>SimpleBotManager. login(long id, String password, Plugin plugin)BotSimpleBotManager. loginDirectly(long id, String password, Plugin plugin)static voidSimpleBotManager. remove(Plugin plugin)Constructors in top.focess.qq.core.bot with parameters of type Plugin Constructor Description SimpleBot(long username, String password, net.mamoe.mirai.Bot bot, Plugin plugin) -
Uses of Plugin in top.focess.qq.core.commands
Methods in top.focess.qq.core.commands with parameters of type Plugin Modifier and Type Method Description static booleanReloadCommand. reloadPlugin(Plugin plugin) -
Uses of Plugin in top.focess.qq.core.net
Fields in top.focess.qq.core.net with type parameters of type Plugin Modifier and Type Field Description protected Map<Plugin,Map<Class<?>,List<PackHandler>>>AClientReceiver. packHandlersprotected Map<Plugin,Map<String,Map<Class<?>,List<PackHandler>>>>AServerReceiver. packHandlersMethods in top.focess.qq.core.net with parameters of type Plugin Modifier and Type Method Description <T extends Packet>
voidAClientReceiver. register(Plugin plugin, Class<T> c, PackHandler<T> packHandler)<T extends Packet>
voidAServerReceiver. register(Plugin plugin, String name, Class<T> c, PackHandler<T> packHandler)voidAClientReceiver. unregister(Plugin plugin)voidAServerReceiver. unregister(Plugin plugin)voidASocket. unregister(Plugin plugin) -
Uses of Plugin in top.focess.qq.core.plugin
Methods in top.focess.qq.core.plugin with type parameters of type Plugin Modifier and Type Method Description static <T extends Plugin>
TPluginClassLoader. getPlugin(Class<T> plugin)Get Plugin instance by the class instanceMethods in top.focess.qq.core.plugin that return Plugin Modifier and Type Method Description static PluginPluginCoreClassLoader. getClassLoadedBy(Class<?> clazz)Get the plugin of the loaded classPluginPluginClassLoader. getPlugin()static PluginPluginClassLoader. getPlugin(String name)Get Plugin instance by the nameMethods in top.focess.qq.core.plugin that return types with arguments of type Plugin Modifier and Type Method Description static List<Plugin>PluginClassLoader. getPlugins()Get all plugins registeredMethods in top.focess.qq.core.plugin with parameters of type Plugin Modifier and Type Method Description static FilePluginClassLoader. disablePlugin(Plugin plugin)Used to disable pluginstatic FilePluginClassLoader. disablePlugin0(Plugin plugin)static voidPluginClassLoader. enablePlugin(Plugin plugin)Used to enable plugin -
Uses of Plugin in top.focess.qq.core.schedule
Methods in top.focess.qq.core.schedule that return Plugin Modifier and Type Method Description PluginAScheduler. getPlugin()PluginFocessTask. getPlugin()Methods in top.focess.qq.core.schedule with parameters of type Plugin Modifier and Type Method Description static voidAScheduler. close(Plugin plugin)Close all the schedulers belonging to the pluginConstructors in top.focess.qq.core.schedule with parameters of type Plugin Constructor Description AScheduler(Plugin plugin)FocessScheduler(Plugin plugin)FocessScheduler(Plugin plugin, String name)ThreadPoolScheduler(Plugin plugin, int poolSize)ThreadPoolScheduler(Plugin plugin, int poolSize, boolean isImmediate, String name)
-