Interface ModEntrypoint


public interface ModEntrypoint
Lifecycle hooks for an hloader mod. All methods have empty default bodies so a mod only needs to override the ones it cares about.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when the host process shuts down, in reverse load order.
    default void
    Called after every mod has been initialized, in load order.
    default void
    Called once, right after the mod's classes have been loaded.
  • Method Details

    • onInitialize

      default void onInitialize(ModContext context)
      Called once, right after the mod's classes have been loaded.
    • onEnable

      default void onEnable(ModContext context)
      Called after every mod has been initialized, in load order.
    • onDisable

      default void onDisable(ModContext context)
      Called when the host process shuts down, in reverse load order.