Package mindustry.mod

Class Mod

java.lang.Object
mindustry.mod.Mod
Direct Known Subclasses:
Plugin

public abstract class Mod extends Object
  • Constructor Details

    • Mod

      public Mod()
  • Method Details

    • getConfig

      public Fi 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

      public void registerServerCommands(CommandHandler handler)
      Register any commands to be used on the server side, e.g. from the console.
    • registerClientCommands

      public void registerClientCommands(CommandHandler handler)
      Register any commands to be used on the client side, e.g. sent from an in-game player..