SpireInitializer - kiooeht/ModTheSpire GitHub Wiki

The @SpireInitializer annotation allows a mod to mark a class (or classes) to be called after patching but before the game loads. ModTheSpire looks for a method called initialize on any classes annotated with @SpireInitializer and calls them before the game is loaded.

The initialize method must be public static and take no arguments.

@SpireInitializer
public class ExampleMod
{
    public static void initialize()
    {
        // ...
    }
}