From 0aceb412e0eec21379805286afb59788530f4fb6 Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 31 Jul 2023 23:07:36 +0200 Subject: Add modmenu support --- src/main/kotlin/com/dulkirfabric/util/DulkirModMenuPlugin.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/kotlin/com/dulkirfabric/util/DulkirModMenuPlugin.kt (limited to 'src/main/kotlin/com/dulkirfabric/util') diff --git a/src/main/kotlin/com/dulkirfabric/util/DulkirModMenuPlugin.kt b/src/main/kotlin/com/dulkirfabric/util/DulkirModMenuPlugin.kt new file mode 100644 index 0000000..40b731e --- /dev/null +++ b/src/main/kotlin/com/dulkirfabric/util/DulkirModMenuPlugin.kt @@ -0,0 +1,11 @@ +package com.dulkirfabric.util + +import com.dulkirfabric.config.DulkirConfig +import com.terraformersmc.modmenu.api.ConfigScreenFactory +import com.terraformersmc.modmenu.api.ModMenuApi + +class DulkirModMenuPlugin : ModMenuApi { + override fun getModConfigScreenFactory(): ConfigScreenFactory<*> { + return ConfigScreenFactory { DulkirConfig().buildScreen(it) } + } +} \ No newline at end of file -- cgit