Interface ServerModInitializer


public interface ServerModInitializer
A mod initializer.

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

Currently, it is executed in ServerSingletons.create(), at it's tail after the common ModInitializer

Since:
2.3.0
  • Field Summary

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

    Modifier and Type
    Method
    Description
    void
    onInitializeServer(org.quiltmc.loader.api.ModContainer mod)
    Runs the mod initializer on the dedicated server environment.
  • Field Details

    • ENTRYPOINT_KEY

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

    • onInitializeServer

      void onInitializeServer(org.quiltmc.loader.api.ModContainer mod)
      Runs the mod initializer on the dedicated server environment.
      Parameters:
      mod - the mod which is initialized