aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-01-04 01:24:26 +1100
committerGitHub <noreply@github.com>2023-01-03 15:24:26 +0100
commitdea9a94fb430f4c4a7ab2a8e9d642780d71423e3 (patch)
tree17c44f93ad6bc950eb2ffce5800029a8266ceb2d /src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
parenta683745aad92c190b64ef269ca7b15cc40e54778 (diff)
downloadnotenoughupdates-dea9a94fb430f4c4a7ab2a8e9d642780d71423e3.tar.gz
notenoughupdates-dea9a94fb430f4c4a7ab2a8e9d642780d71423e3.tar.bz2
notenoughupdates-dea9a94fb430f4c4a7ab2a8e9d642780d71423e3.zip
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
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java7
1 files changed, 7 insertions, 0 deletions
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
+ );
+ }
}