aboutsummaryrefslogtreecommitdiff
path: root/api/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-01-27 10:28:06 +0800
committershedaniel <daniel@shedaniel.me>2022-01-27 10:28:06 +0800
commit8405799f9083e5180fd1da134249363b785f0071 (patch)
treeebfe0682b2e5addba5bd1361c27e70a7a7186545 /api/src/main/java
parentad85ecaa709afbbcc77c645fdc679816cc4ff1c5 (diff)
downloadRoughlyEnoughItems-8405799f9083e5180fd1da134249363b785f0071.tar.gz
RoughlyEnoughItems-8405799f9083e5180fd1da134249363b785f0071.tar.bz2
RoughlyEnoughItems-8405799f9083e5180fd1da134249363b785f0071.zip
Rework crafting getInputEntries
Diffstat (limited to 'api/src/main/java')
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/common/display/SimpleGridMenuDisplay.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/api/common/display/SimpleGridMenuDisplay.java b/api/src/main/java/me/shedaniel/rei/api/common/display/SimpleGridMenuDisplay.java
index 0c0fd7f5f..f19cc22a9 100644
--- a/api/src/main/java/me/shedaniel/rei/api/common/display/SimpleGridMenuDisplay.java
+++ b/api/src/main/java/me/shedaniel/rei/api/common/display/SimpleGridMenuDisplay.java
@@ -30,7 +30,35 @@ package me.shedaniel.rei.api.common.display;
* @see me.shedaniel.rei.api.common.transfer.info.simple.SimpleGridMenuInfo
*/
public interface SimpleGridMenuDisplay extends Display {
+ /**
+ * Returns the functional width of the grid.
+ *
+ * @return the functional width of the grid
+ */
int getWidth();
+ /**
+ * Returns the functional height of the grid.
+ *
+ * @return the functional height of the grid
+ */
int getHeight();
+
+ /**
+ * Returns the input width of the input entries.
+ *
+ * @return the input width of the input entries
+ */
+ default int getInputWidth() {
+ return getWidth();
+ }
+
+ /**
+ * Returns the input height of the input entries.
+ *
+ * @return the input height of the input entries
+ */
+ default int getInputHeight() {
+ return getHeight();
+ }
}