Package net.fabricmc.api
Interface ModInitializer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ModInitializer
A mod initializer.
In fabric.mod.json
, the entrypoint is defined with main
key.
-
Method Summary
Modifier and Type Method Description void
onInitialize()
Runs the mod initializer.
-
Method Details
-
onInitialize
void onInitialize()Runs the mod initializer.
-