From db456ff7f6d10692d6579c7193f172bad7c65b12 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 17 Jun 2022 00:10:57 +0800 Subject: Add hotbar quick cheat + fix stacked cheating --- api/src/main/java/me/shedaniel/rei/api/client/ClientHelper.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'api/src/main/java') diff --git a/api/src/main/java/me/shedaniel/rei/api/client/ClientHelper.java b/api/src/main/java/me/shedaniel/rei/api/client/ClientHelper.java index 706a5c7eb..88808268a 100644 --- a/api/src/main/java/me/shedaniel/rei/api/client/ClientHelper.java +++ b/api/src/main/java/me/shedaniel/rei/api/client/ClientHelper.java @@ -73,6 +73,15 @@ public interface ClientHelper { */ boolean tryCheatingEntry(EntryStack stack); + /** + * Tries to cheat stack into the given slot. + * + * @param stack the stack to cheat in + * @param hotbarSlotId the hotbar slot id + * @return whether it failed + */ + boolean tryCheatingEntryTo(EntryStack stack, int hotbarSlotId); + /** * Gets the mod from an item * -- cgit