aboutsummaryrefslogtreecommitdiff
path: root/api/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-06-17 00:10:57 +0800
committershedaniel <daniel@shedaniel.me>2022-06-17 00:10:57 +0800
commitf1fd1e6455be1a49d9c1d26a756cc1d22a1831cb (patch)
tree470b157962d710577d20c294ee9cbfb1e1a5f3f1 /api/src/main/java
parente9187e728209167bd28bdf4120e6e1dc695d1ec7 (diff)
downloadRoughlyEnoughItems-f1fd1e6455be1a49d9c1d26a756cc1d22a1831cb.tar.gz
RoughlyEnoughItems-f1fd1e6455be1a49d9c1d26a756cc1d22a1831cb.tar.bz2
RoughlyEnoughItems-f1fd1e6455be1a49d9c1d26a756cc1d22a1831cb.zip
Add hotbar quick cheat + fix stacked cheating
Diffstat (limited to 'api/src/main/java')
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/ClientHelper.java9
1 files changed, 9 insertions, 0 deletions
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
@@ -75,6 +75,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
*
* @param item the item to find