Quilt Loader 1
Loading...
Searching...
No Matches
net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint Interface Reference

Entrypoint getting invoked just before launching the game. More...

Inheritance diagram for net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint:
org.quiltmc.loader.api.entrypoint.GameEntrypoint

Public Member Functions

void onPreLaunch ()
 Runs the entrypoint.

Detailed Description

Entrypoint getting invoked just before launching the game.

Avoid interfering with the game from this! Accessing anything needs careful consideration to avoid interfering with its own initialization or otherwise harming its state. It is recommended to implement this interface on its own class to avoid running static initializers too early, e.g. because they were referenced in field or method signatures in the same class.

The entrypoint is exposed with preLaunch key in the mod json and runs for any environment. It usually executes several seconds before the main/client/server entrypoints.

See also
net.fabricmc.loader.api.FabricLoader#getEntrypointContainers(String, Class)
Deprecated
Please migrate to the Quilt version of this interface: org.quiltmc.loader.api.entrypoint.PreLaunchEntrypoint

The documentation for this interface was generated from the following file:
  • src/fabric/api/java/net/fabricmc/loader/api/entrypoint/PreLaunchEntrypoint.java