VitalModule
A module includes additional features within the Vital ecosystem. Every module is essentially a Configuration and should define every module bean. Additionally, a module can also display what features are added, etc.
@VitalModule.Info("mymodule")
public class MyModule extends VitalModule {
@Override
public void onEnable() {
// ...
}
@Override
public void onDisable() {
// ...
}
}Inheritors
Types
Defines the info of a VitalModule. This annotation must be applied to all implementations of VitalModule.
Properties
All info metadata for this class, indexed by their unique Class. Can be initialized with VitalCoreModule.getRequiredAnnotation or VitalCoreModule.getRequiredAnnotations.
Functions
Disables this module by calling the onDisable lifecycle function. The module is only disabled if it is currently enabled.
Enables this module by calling the onEnable lifecycle function. The module is only enabled if it is not already enabled.
Gets the info annotation for the given type. If no info annotation was found, throws RuntimeException.