Package net.tnemc.plugincore.core.module
Interface Module
public interface Module
Module represents an add-on module for TNE.
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Method Summary
Modifier and TypeMethodDescriptionvoidbackup(StorageManager manager) Called when thestorage managerruns its backup method.voiddisable(PluginCore core) Called when thePluginCore.onDisable()method is called.voidenable(PluginCore core) Called after thePluginCore.enable()method is called.voidenableMenu(net.tnemc.menu.core.MenuHandler menuHandler) Called when themenu handleris enabled.voidenableSave(StorageManager manager) Called when thestorage manageris enabled, and a connection is established.voidinitConfigurations(File directory) Called when the configurations are initialized and loaded.List<revxrsal.commands.orphan.OrphanCommand> Used to register sub commands onto the exist /tne command set.default Map<String, CallbackEntry> Called after theCallbackManageris initialized.voidregisterCommands(revxrsal.commands.Lamp<?> handler) Called after the default TNE Commands are registered.Called after theCallbackManageris initialized.List<revxrsal.commands.orphan.OrphanCommand> Used to register sub commands onto the exist /money command set.<A extends revxrsal.commands.command.CommandActor>
@NotNull revxrsal.commands.LampBuilderVisitor<A> List<revxrsal.commands.orphan.OrphanCommand> Used to register sub commands onto the exist /transaction command set.voidreset(StorageManager manager) Called when thestorage managerruns its reset method.
-
Method Details
-
enable
Called after thePluginCore.enable()method is called. -
disable
Called when thePluginCore.onDisable()method is called. -
initConfigurations
Called when the configurations are initialized and loaded.- Parameters:
directory- The plugin's configuration directory.
-
backup
Called when thestorage managerruns its backup method.- Parameters:
manager- Thestorage managerinstance.
-
reset
Called when thestorage managerruns its reset method.- Parameters:
manager- Thestorage managerinstance.
-
enableSave
Called when thestorage manageris enabled, and a connection is established.- Parameters:
manager- Thestorage managerinstance.
-
registerCommands
Called after the default TNE Commands are registered.- Parameters:
handler- TheLampthat the commands are registered to.
-
registerParameterTypes
@NotNull <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.LampBuilderVisitor<A> registerParameterTypes() -
registerMoneySub
List<revxrsal.commands.orphan.OrphanCommand> registerMoneySub()Used to register sub commands onto the exist /money command set. -
registerTransactionSub
List<revxrsal.commands.orphan.OrphanCommand> registerTransactionSub()Used to register sub commands onto the exist /transaction command set. -
registerAdminSub
List<revxrsal.commands.orphan.OrphanCommand> registerAdminSub()Used to register sub commands onto the exist /tne command set. -
registerCallbacks
Called after theCallbackManageris initialized. This method will register new callbacks with the manager automatically.- Returns:
- A map containing the callbacks to register where the key is the callback name and the
value is the
CallbackEntryfunction.
-
registerListeners
Called after theCallbackManageris initialized. This method will register the callback listeners with the manager automatically.- Returns:
- A map containing the listeners to register where the key is the callback name and the value is the listener function.
-