aboutsummaryrefslogtreecommitdiff
path: root/src/compat/modmenu/java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-10-26 18:55:30 +0200
committerLinnea Gräf <nea@nea.moe>2024-10-26 18:55:30 +0200
commit8ab44088546bf3360564e1a09f0831fea7659d2e (patch)
treeef8441392283614d2cc6700d056465b714eec5c4 /src/compat/modmenu/java
parent928f6a45017df8aeb467e6879b350ade89c73d9a (diff)
downloadFirmament-8ab44088546bf3360564e1a09f0831fea7659d2e.tar.gz
Firmament-8ab44088546bf3360564e1a09f0831fea7659d2e.tar.bz2
Firmament-8ab44088546bf3360564e1a09f0831fea7659d2e.zip
Isolate modmenu compat
[no changelog]
Diffstat (limited to 'src/compat/modmenu/java')
-rw-r--r--src/compat/modmenu/java/moe/nea/firmament/compat/modmenu/FirmamentModMenuPlugin.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compat/modmenu/java/moe/nea/firmament/compat/modmenu/FirmamentModMenuPlugin.kt b/src/compat/modmenu/java/moe/nea/firmament/compat/modmenu/FirmamentModMenuPlugin.kt
new file mode 100644
index 0000000..b734e2c
--- /dev/null
+++ b/src/compat/modmenu/java/moe/nea/firmament/compat/modmenu/FirmamentModMenuPlugin.kt
@@ -0,0 +1,11 @@
+package moe.nea.firmament.compat.modmenu
+
+import com.terraformersmc.modmenu.api.ConfigScreenFactory
+import com.terraformersmc.modmenu.api.ModMenuApi
+import moe.nea.firmament.gui.config.AllConfigsGui
+
+class FirmamentModMenuPlugin : ModMenuApi {
+ override fun getModConfigScreenFactory(): ConfigScreenFactory<*> {
+ return ConfigScreenFactory { AllConfigsGui.makeScreen(it) }
+ }
+}