diff options
author | Linnea Gräf <nea@nea.moe> | 2025-06-04 01:06:51 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-06-04 01:06:51 +0200 |
commit | 2a1631dadfc0f78eb3b7768f9bca3f9fa1ea619e (patch) | |
tree | 422f0d17f4ee40e930a1a84ca9f0d76b4acd3e7c /src/main/kotlin/features/macros/HotkeyAction.kt | |
parent | 9ad691bc1ba5f50d89a9c99cbf950fe2390a5a44 (diff) | |
download | Firmament-2a1631dadfc0f78eb3b7768f9bca3f9fa1ea619e.tar.gz Firmament-2a1631dadfc0f78eb3b7768f9bca3f9fa1ea619e.tar.bz2 Firmament-2a1631dadfc0f78eb3b7768f9bca3f9fa1ea619e.zip |
feat: Add basic combo buttons (without editor for now)
Diffstat (limited to 'src/main/kotlin/features/macros/HotkeyAction.kt')
-rw-r--r-- | src/main/kotlin/features/macros/HotkeyAction.kt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/kotlin/features/macros/HotkeyAction.kt b/src/main/kotlin/features/macros/HotkeyAction.kt new file mode 100644 index 0000000..51c1baa --- /dev/null +++ b/src/main/kotlin/features/macros/HotkeyAction.kt @@ -0,0 +1,35 @@ +package moe.nea.firmament.features.macros + +import net.minecraft.text.Text +import moe.nea.firmament.util.MC + +interface HotkeyAction { + // TODO: execute + val label: Text + fun execute() +} + +data class CommandAction(val command: String) : HotkeyAction { + override val label: Text + get() = Text.literal("/$command") + + override fun execute() { + MC.sendCommand(command) + } +} + +// Mit onscreen anzeige: +// F -> 1 /equipment +// F -> 2 /wardrobe +// Bei Combos: Keys buffern! (für wardrobe hotkeys beispielsweiße) + +// Radial menu +// Hold F +// Weight (mach eins doppelt so groß) +// /equipment +// /wardrobe + +// Bei allen: Filter! +// - Nur in Dungeons / andere Insel +// - Nur wenn ich Item X im inventar habe (fishing rod) + |