Package mindustry.mod
Class Mod
java.lang.Object
mindustry.mod.Mod
- Direct Known Subclasses:
Plugin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Called after all plugins have been created and commands have been registered.void
Called on clientside mods.void
registerClientCommands
(CommandHandler handler) Register any commands to be used on the client side, e.g.void
registerServerCommands
(CommandHandler handler) Register any commands to be used on the server side, e.g.
-
Constructor Details
-
Mod
public Mod()
-
-
Method Details
-
getConfig
- Returns:
- the config file for this plugin, as the file 'mods/[plugin-name]/config.json'.
-
init
public void init()Called after all plugins have been created and commands have been registered. -
loadContent
public void loadContent()Called on clientside mods. Load content here. -
registerServerCommands
Register any commands to be used on the server side, e.g. from the console. -
registerClientCommands
Register any commands to be used on the client side, e.g. sent from an in-game player..
-