aboutsummaryrefslogtreecommitdiff
path: root/test-forge/src
diff options
context:
space:
mode:
Diffstat (limited to 'test-forge/src')
-rw-r--r--test-forge/src/main/java/dev/isxander/yacl/test/forge/ForgeTest.java18
-rw-r--r--test-forge/src/main/resources/META-INF/mods.toml28
-rw-r--r--test-forge/src/main/resources/pack.mcmeta6
3 files changed, 52 insertions, 0 deletions
diff --git a/test-forge/src/main/java/dev/isxander/yacl/test/forge/ForgeTest.java b/test-forge/src/main/java/dev/isxander/yacl/test/forge/ForgeTest.java
new file mode 100644
index 0000000..182c4a9
--- /dev/null
+++ b/test-forge/src/main/java/dev/isxander/yacl/test/forge/ForgeTest.java
@@ -0,0 +1,18 @@
+package dev.isxander.yacl.test.forge;
+
+import dev.isxander.yacl.test.GuiTest;
+import net.minecraftforge.client.ConfigScreenHandler;
+import net.minecraftforge.fml.ModLoadingContext;
+import net.minecraftforge.fml.common.Mod;
+
+@Mod("yacl_test")
+public class ForgeTest {
+ public ForgeTest() {
+ ModLoadingContext.get().registerExtensionPoint(
+ ConfigScreenHandler.ConfigScreenFactory.class,
+ () -> new ConfigScreenHandler.ConfigScreenFactory(
+ (minecraft, parent) -> GuiTest.getModConfigScreenFactory(parent)
+ )
+ );
+ }
+}
diff --git a/test-forge/src/main/resources/META-INF/mods.toml b/test-forge/src/main/resources/META-INF/mods.toml
new file mode 100644
index 0000000..f4f57d0
--- /dev/null
+++ b/test-forge/src/main/resources/META-INF/mods.toml
@@ -0,0 +1,28 @@
+modLoader = "javafml"
+loaderVersion = "[45,)"
+#issueTrackerURL = ""
+license = "LGPL-3.0-or-later"
+
+[[mods]]
+modId = "yacl_test"
+version = "1"
+displayName = "YACL Test"
+authors = "isXander"
+description = '''
+Test mod for YACL
+'''
+#logoFile = ""
+
+[[dependencies.yacl_test]]
+modId = "forge"
+mandatory = true
+versionRange = "[45,)"
+ordering = "NONE"
+side = "BOTH"
+
+[[dependencies.yacl_test]]
+modId = "minecraft"
+mandatory = true
+versionRange = "[1.19.4,)"
+ordering = "NONE"
+side = "BOTH"
diff --git a/test-forge/src/main/resources/pack.mcmeta b/test-forge/src/main/resources/pack.mcmeta
new file mode 100644
index 0000000..8fbe236
--- /dev/null
+++ b/test-forge/src/main/resources/pack.mcmeta
@@ -0,0 +1,6 @@
+{
+ "pack": {
+ "description": "Test YACL",
+ "pack_format": 14
+ }
+}