diff options
Diffstat (limited to 'src/compat/yacl/java/KeybindingBuilder.kt')
-rw-r--r-- | src/compat/yacl/java/KeybindingBuilder.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/compat/yacl/java/KeybindingBuilder.kt b/src/compat/yacl/java/KeybindingBuilder.kt new file mode 100644 index 0000000..322ddff --- /dev/null +++ b/src/compat/yacl/java/KeybindingBuilder.kt @@ -0,0 +1,16 @@ +package moe.nea.firmament.compat.yacl + +import dev.isxander.yacl3.api.Controller +import dev.isxander.yacl3.api.Option +import dev.isxander.yacl3.api.controller.ControllerBuilder +import moe.nea.firmament.gui.config.ManagedOption +import moe.nea.firmament.keybindings.SavedKeyBinding + +class KeybindingBuilder( + val option: Option<SavedKeyBinding>, + val managedOption: ManagedOption<SavedKeyBinding> +) : ControllerBuilder<SavedKeyBinding> { + override fun build(): Controller<SavedKeyBinding> { + return KeybindingController(option, managedOption) + } +} |