Package net.fabricmc.api
Interface ClientModInitializer
- 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 ClientModInitializer
A mod initializer ran only on
EnvType.CLIENT
.
This entrypoint is suitable for setting up client-specific logic, such as rendering or integrated server tweaks.
In fabric.mod.json
, the entrypoint is defined with client
key.
-
Method Summary
Modifier and Type Method Description void
onInitializeClient()
Runs the mod initializer on the client environment.
-
Method Details
-
onInitializeClient
void onInitializeClient()Runs the mod initializer on the client environment.
-