diff options
author | Ronald Inglett <71849533+inglettronald@users.noreply.github.com> | 2023-08-01 15:14:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-01 15:14:28 -0500 |
commit | 0516a4be0c93d6a82dc23ba074a5ee6c6b8c181f (patch) | |
tree | e14da1c0b06c7411804dd406ed41b9db6413b0b9 /src/main/kotlin/com/dulkirfabric/util | |
parent | ead0b68578d40562728aec8c725fe35cf6724d73 (diff) | |
parent | 0aceb412e0eec21379805286afb59788530f4fb6 (diff) | |
download | DulkirMod-Fabric-0516a4be0c93d6a82dc23ba074a5ee6c6b8c181f.tar.gz DulkirMod-Fabric-0516a4be0c93d6a82dc23ba074a5ee6c6b8c181f.tar.bz2 DulkirMod-Fabric-0516a4be0c93d6a82dc23ba074a5ee6c6b8c181f.zip |
Merge pull request #6 from romangraef/feat/modmenu
Add modmenu support
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/util/DulkirModMenuPlugin.kt | 11 |
1 files changed, 11 insertions, 0 deletions
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 |