From 8ab44088546bf3360564e1a09f0831fea7659d2e Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 26 Oct 2024 18:55:30 +0200 Subject: Isolate modmenu compat [no changelog] --- .../nea/firmament/compat/modmenu/FirmamentModMenuPlugin.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/compat/modmenu/java/moe/nea/firmament/compat/modmenu/FirmamentModMenuPlugin.kt (limited to 'src/compat/modmenu') 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) } + } +} -- cgit