nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)

Preloading Tricks

Mod

Add hook before setup mod for Quilt, Forge, Fabric

Client or server Library

1,343 downloads
4 followers

Preloading Tricks

A mod that adds a hook before setting up the main mod. Mainly used for ModSets and AutoModpack.
It only depends on the loader version. It may work on lower versions than these, but that needs testing and feedback.

  • Fabric 0.14
  • Quilt 0.20
  • Forge 40

Callbacks

Setup Mod

The callback is using Java's ServiceLoader feature.
It will be invoked just before setting up the mods.

Using SetupModService implementations for platforms to control the mod loading.

With the callback, you can control the mod loading.
Notice: It's not recommended to add mods since it can't load mods from a file or classpath. Using IModLocator is officially supported by Forge.

Language Provider

The callback is using Java's ServiceLoader.
It's invoked much earlier than setting up the main mod.

External resources


Project members

settingdust

Owner


Technical information

License
MIT
Client side
optional
Server side
optional
Project ID