diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-05-03 19:20:13 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 11:20:13 +0200 |
| commit | c18aa60c33a8d70938c023ccef79bd4666b1921b (patch) | |
| tree | e7162b4ca8b68827eade56b9061960037f4c1a08 /src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | |
| parent | 597a248aea35b9d85b4d886434dd673321424007 (diff) | |
| download | notenoughupdates-c18aa60c33a8d70938c023ccef79bd4666b1921b.tar.gz notenoughupdates-c18aa60c33a8d70938c023ccef79bd4666b1921b.tar.bz2 notenoughupdates-c18aa60c33a8d70938c023ccef79bd4666b1921b.zip | |
Add CTRL+F to open ah/bz search menus (#1141)
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.java | 7 |
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 f13462bc..14a5072b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -2393,6 +2393,13 @@ public class Utils { ); } + public static void sendMiddleMouseClick(int windowId, int slot) { + Minecraft.getMinecraft().playerController.windowClick( + windowId, + slot, 2, 3, Minecraft.getMinecraft().thePlayer + ); + } + public static String timeSinceMillisecond(long time) { Instant lastSave = Instant.ofEpochMilli(time); LocalDateTime lastSaveTime = LocalDateTime.ofInstant(lastSave, TimeZone.getDefault().toZoneId()); |
