File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
src/main/java/org/thinkingstudio/bedsheet/loader/entrypoint Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ package org .thinkingstudio .bedsheet .loader .entrypoint ;
2
+
3
+ import net .neoforged .fml .IExtensionPoint ;
4
+
5
+ public interface ClientModInitializer extends IExtensionPoint {
6
+ void onInitializeClient ();
7
+ }
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ public static void init() {
14
14
Optional <DedicatedServerModInitializer > serverModInitializer = modContainer .getCustomExtension (DedicatedServerModInitializer .class );
15
15
serverModInitializer .ifPresent (DedicatedServerModInitializer ::onInitializeServer );
16
16
}
17
+ if (FMLLoader .getDist ().isClient ()) {
18
+ Optional <ClientModInitializer > clientModInitializer = modContainer .getCustomExtension (ClientModInitializer .class );
19
+ clientModInitializer .ifPresent (ClientModInitializer ::onInitializeClient );
20
+ }
17
21
});
18
22
}
19
23
}
You can’t perform that action at this time.
0 commit comments