Interface ModInitializer


public interface ModInitializer
A mod initializer.

In mod manifests, the value is defined with the "yumi:init" key.

Currently, it is executed in Bootstrap.bootStrap(), just before the freezing of built-in registries.

Since:
1.0.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Represents the key which this value is defined with, whose value is "yumi:init".
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Runs the mod initializer.
  • Field Details

    • ENTRYPOINT_KEY

      static final String ENTRYPOINT_KEY
      Represents the key which this value is defined with, whose value is "yumi:init".
      See Also:
  • Method Details

    • onInitialize

      void onInitialize(ModContainer mod)
      Runs the mod initializer.
      Parameters:
      mod - the mod which is initialized