diff options
| author | shedaniel <daniel@shedaniel.me> | 2022-01-27 10:28:06 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2022-01-27 10:39:59 +0800 |
| commit | 904586629d3b9483df7b4ee5b35943db562462bf (patch) | |
| tree | 3954fb5eac825c97207bcd87dc3ba156bf98da9e /api | |
| parent | 4a026abcf9aa390a5473cda87c83ae17d1456820 (diff) | |
| download | RoughlyEnoughItems-904586629d3b9483df7b4ee5b35943db562462bf.tar.gz RoughlyEnoughItems-904586629d3b9483df7b4ee5b35943db562462bf.tar.bz2 RoughlyEnoughItems-904586629d3b9483df7b4ee5b35943db562462bf.zip | |
Rework crafting getInputEntries
Diffstat (limited to 'api')
| -rw-r--r-- | api/src/main/java/me/shedaniel/rei/api/common/display/SimpleGridMenuDisplay.java | 28 |
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(); + } } |
