tModLoader v2026.02
A mod to make and play Terraria mods
ICustomAutoload Interface Referenceabstract

Provides a static abstract Autoload(Mod) method for mods to implement their own autoloading for types where ILoadable does not suffice.
Sample use cases:

To implement completely custom loading behavior in a library, consider making an interface that extends from IAutoload<TImpl> More...

Inherits IAutoload< ICustomAutoload.AutoloadImpl >.

Classes

class  AutoloadImpl
 

Static Public Member Functions

static abstract void Autoload (Mod mod)
 

Detailed Description

Provides a static abstract Autoload(Mod) method for mods to implement their own autoloading for types where ILoadable does not suffice.
Sample use cases:

  • When the type has multiple instances of the same class
  • To manually call some content registration methods during autoloading (eg
    See also
    MusicLoader.AddMusic
    )

To implement completely custom loading behavior in a library, consider making an interface that extends from IAutoload<TImpl>