Skip to content
Kiooeht edited this page Aug 11, 2018 · 2 revisions

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()
    {
        // ...
    }
}