From dea9a94fb430f4c4a7ab2a8e9d642780d71423e3 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Wed, 4 Jan 2023 01:24:26 +1100 Subject: Hotkeys for wardrobe slots (#494) * Hotkeys for wardrobe slots, e.g when in the wardrobe, pressing 1 will select the first wardrobe slot * fix wardrobe keybinds not updating * fix up some stuff * i suppose * I should learn more kotlin * considered --- src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java index 0ea1dafb..571a43f9 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -2057,4 +2057,11 @@ public class Utils { } } } + + public static void sendLeftMouseClick(int windowId, int slot) { + Minecraft.getMinecraft().playerController.windowClick( + windowId, + slot, 0, 0, Minecraft.getMinecraft().thePlayer + ); + } } -- cgit