From f1fd1e6455be1a49d9c1d26a756cc1d22a1831cb 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 d9f0eae23..55c481151 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 @@ -74,6 +74,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