aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-06-17 00:10:57 +0800
committershedaniel <daniel@shedaniel.me>2022-06-28 03:21:12 +0800
commitdb456ff7f6d10692d6579c7193f172bad7c65b12 (patch)
tree29204b5588b8d1678a0b216566de26846eea2b9f /api
parent90ef94bb9d5cf482c824ee53aa6133939d8de670 (diff)
downloadRoughlyEnoughItems-db456ff7f6d10692d6579c7193f172bad7c65b12.tar.gz
RoughlyEnoughItems-db456ff7f6d10692d6579c7193f172bad7c65b12.tar.bz2
RoughlyEnoughItems-db456ff7f6d10692d6579c7193f172bad7c65b12.zip
Add hotbar quick cheat + fix stacked cheating
Diffstat (limited to 'api')
-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 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
@@ -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
*
* @param item the item to find