Interface ServerModInitializer
public interface ServerModInitializer
A mod initializer.
In quilt.mod.json, the entrypoint is defined with "server_init" key.
Currently, it is executed in ServerSingletons.create(), at it's tail after the common ModInitializer
- Since:
- 2.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRepresents the key which this entrypoint is defined with, whose value is "server_init". -
Method Summary
Modifier and TypeMethodDescriptionvoidonInitializeServer(org.quiltmc.loader.api.ModContainer mod) Runs the mod initializer on the dedicated server environment.
-
Field Details
-
ENTRYPOINT_KEY
Represents the key which this entrypoint is defined with, whose value is "server_init".- See Also:
-
-
Method Details
-
onInitializeServer
void onInitializeServer(org.quiltmc.loader.api.ModContainer mod) Runs the mod initializer on the dedicated server environment.- Parameters:
mod- the mod which is initialized
-