Interface ModInitializer


public interface ModInitializer
A mod initializer.

In quilt.mod.json, the entrypoint is defined with "init" key.

Currently, it is executed in BlockGame.create(), at it's tail

Since:
1.1.2
See Also:
  • Field Summary

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

    Modifier and Type
    Method
    Description
    void
    onInitialize(org.quiltmc.loader.api.ModContainer mod)
    Runs the mod initializer.
  • Field Details

    • ENTRYPOINT_KEY

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

    • onInitialize

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