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 with parameters of type Plugin Modifier and Type Method Description static voidCommandSender. clear(Plugin plugin)static voidCommand. register(Plugin plugin, Command command)Register the commandstatic voidCommandLine. register(Plugin plugin, String name, SpecialArgumentHandler handler)Register the special argument handlerstatic 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 voidCommandLine. unregister(Plugin plugin)Unregister the special argument handlers by 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)
-