Interface ModInitializer
public interface ModInitializer
A mod initializer.
In quilt.mod.json, the entrypoint is defined with "init" key.
Currently, it is executed in BlockGame.create(), at it's tail
- Since:
- 1.1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRepresents the key which this entrypoint is defined with, whose value is "init". -
Method Summary
Modifier and TypeMethodDescriptionvoidonInitialize(org.quiltmc.loader.api.ModContainer mod) Runs the mod initializer.
-
Field Details
-
ENTRYPOINT_KEY
Represents the key which this entrypoint is defined with, whose value is "init".- See Also:
-
-
Method Details
-
onInitialize
void onInitialize(org.quiltmc.loader.api.ModContainer mod) Runs the mod initializer.- Parameters:
mod- the mod which is initialized
-