summaryrefslogtreecommitdiff
path: root/src/main/java/com/example/examplemod/ExampleModClient.java
diff options
context:
space:
mode:
authorneoforge-mdk-automation[bot] <173375039+neoforge-mdk-automation[bot]@users.noreply.github.com>2025-06-12 21:29:15 +0800
committerGitHub <noreply@github.com>2025-06-12 21:29:15 +0800
commitb496094ed4155595811d9e84a37e197c12ae65c6 (patch)
tree8c105abcfe4232a25e68d6161a7dec5cec43efa6 /src/main/java/com/example/examplemod/ExampleModClient.java
parent90dd7a64391827525d792268c99cfc5a0e86c2e9 (diff)
Update MDK with new output from mod generator (#2)
Co-authored-by: NeoForge MDK Automation <173375039+neoforge-mdk-automation[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/java/com/example/examplemod/ExampleModClient.java')
-rw-r--r--src/main/java/com/example/examplemod/ExampleModClient.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/com/example/examplemod/ExampleModClient.java b/src/main/java/com/example/examplemod/ExampleModClient.java
new file mode 100644
index 0000000..3079631
--- /dev/null
+++ b/src/main/java/com/example/examplemod/ExampleModClient.java
@@ -0,0 +1,18 @@
+package com.example.examplemod;
+
+import net.neoforged.api.distmarker.Dist;
+import net.neoforged.fml.ModContainer;
+import net.neoforged.fml.common.Mod;
+import net.neoforged.neoforge.client.gui.ConfigurationScreen;
+import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
+
+// This class will not load on dedicated servers. Accessing client side code from here is safe.
+@Mod(value = ExampleMod.MODID, dist = Dist.CLIENT)
+public class ExampleModClient {
+ public ExampleModClient(ModContainer container) {
+ // Allows NeoForge to create a config screen for this mod's configs.
+ // The config screen is accessed by going to the Mods screen > clicking on your mod > clicking on config.
+ // Do not forget to add translations for your config options to the en_us.json file.
+ container.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new);
+ }
+} \ No newline at end of file