Package org.core.platform.plugin
Interface CorePlugin
- All Superinterfaces:
Comparable<CorePlugin>,Plugin
A plugin that TranslateCore can boot
-
Method Summary
Modifier and TypeMethodDescriptiondefault intcompareTo(@NotNull CorePlugin o)default @NotNull LoadOnlyOnPlatform[]@NotNull StringGets the licence of this plugin@NotNull CorePluginVersionGets the plugin version informationdefault voidonConstruct(@NotNull Object pluginLauncher)Deprecated.default voidonConstruct(@NotNull Object pluginLauncher, @NotNull Logger logger)voidonRegisterCommands(@NotNull CommandRegister register)Runs when commands should be registereddefault voidMethods inherited from interface org.core.platform.plugin.Plugin
createConfig, getConfigFolder, getPlatformLauncher, getPluginId, getPluginName, getResource, onCoreFinishedInit, onCoreInit, onCoreReady
-
Method Details
-
onConstruct
Deprecated.Runs when the core plugin is constructed.- Parameters:
pluginLauncher- The plugin launcher is its native launcher, this should be the same as what is returned inPlugin.getPlatformLauncher()
-
onConstruct
-
onRegisterCommands
Runs when commands should be registered- Parameters:
register- A command register for registering the plugins commands
-
getLicence
Gets the licence of this plugin- Returns:
- The licence name of the plugin
-
getPluginVersion
Description copied from interface:PluginGets the plugin version information- Specified by:
getPluginVersionin interfacePlugin- Returns:
- The plugin version information
-
onShutdown
default void onShutdown() -
compareTo
- Specified by:
compareToin interfaceComparable<CorePlugin>
-
getDependingOn
-