Package com.xpdustry.distributor.common
Class DistributorCommonPlugin
java.lang.Object
mindustry.mod.Mod
mindustry.mod.Plugin
com.xpdustry.distributor.common.plugin.AbstractMindustryPlugin
com.xpdustry.distributor.common.DistributorCommonPlugin
- All Implemented Interfaces:
Distributor,MindustryPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonInit()Called after the plugin factory creation.voidonLoad()Called afterMindustryPlugin.onClientCommandsRegistration(CommandHandler)just beforeEventType.ServerLoadEvent.Methods inherited from class com.xpdustry.distributor.common.plugin.AbstractMindustryPlugin
addListener, getConfig, getListeners, getLogger, getMetadata, getPluginAnnotationParser, init, loadContent, registerClientCommands, registerServerCommandsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.xpdustry.distributor.common.plugin.MindustryPlugin
getDirectory, onClientCommandsRegistration, onExit, onServerCommandsRegistration, onUpdate
-
Constructor Details
-
DistributorCommonPlugin
public DistributorCommonPlugin()
-
-
Method Details
-
getServiceManager
- Specified by:
getServiceManagerin interfaceDistributor
-
getEventManager
- Specified by:
getEventManagerin interfaceDistributor
-
getCommandFacadeFactory
- Specified by:
getCommandFacadeFactoryin interfaceDistributor
-
getPermissionManager
- Specified by:
getPermissionManagerin interfaceDistributor
-
getLocalizationSourceManager
- Specified by:
getLocalizationSourceManagerin interfaceDistributor
-
getPluginScheduler
- Specified by:
getPluginSchedulerin interfaceDistributor
-
onInit
public void onInit()Description copied from interface:MindustryPluginCalled after the plugin factory creation. Initialize your plugin here.Warning: Only call other plugins in this method if they use Distributor too.
- Specified by:
onInitin interfaceMindustryPlugin
-
onLoad
public void onLoad()Description copied from interface:MindustryPluginCalled afterMindustryPlugin.onClientCommandsRegistration(CommandHandler)just beforeEventType.ServerLoadEvent. Hook into other plugins here since this method technically replacesMod.init().- Specified by:
onLoadin interfaceMindustryPlugin
-