Package com.aliucord.entities
Class Plugin
-
- All Implemented Interfaces:
public abstract class Plugin
Base Plugin class all plugins must extend
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Plugin.Manifest
Plugin Manifest
public class
Plugin.SettingsTab
Plugin SettingsTab
-
Field Summary
Fields Modifier and Type Field Description public final Logger
logger
public Plugin.Manifest
manifest
public Plugin.SettingsTab
settingsTab
public Resources
resources
public boolean
needsResources
public String
__filename
public final SettingsAPI
settings
-
Constructor Summary
Constructors Constructor Description Plugin(Plugin.Manifest manifest)
Plugin()
-
Method Summary
Modifier and Type Method Description Plugin.Manifest
getManifest()
Method returning the Manifest of your Plugin boolean
requiresRestart()
Returns whether the user will be prompted to restart after enabling/disabling. AliucordPlugin
getAnnotation()
Returns the @AliucordPlugin annotation if exists void
load(Context context)
Called when your Plugin is loaded void
unload(Context context)
Called when your Plugin is unloaded abstract void
start(Context context)
Called when your Plugin is started abstract void
stop(Context context)
Called when your Plugin is stopped String
getName()
-
-
Constructor Detail
-
Plugin
Plugin(Plugin.Manifest manifest)
-
Plugin
Plugin()
-
-
Method Detail
-
getManifest
@NonNull() Plugin.Manifest getManifest()
Method returning the Manifest of your Plugin
-
requiresRestart
boolean requiresRestart()
Returns whether the user will be prompted to restart after enabling/disabling.
-
getAnnotation
@Nullable() AliucordPlugin getAnnotation()
Returns the @AliucordPlugin annotation if exists
-
unload
void unload(Context context)
Called when your Plugin is unloaded
- Parameters:
context
- Context
-
start
abstract void start(Context context)
Called when your Plugin is started
- Parameters:
context
- Context
-
stop
abstract void stop(Context context)
Called when your Plugin is stopped
- Parameters:
context
- Context
-
-
-
-