diff options
| author | shedaniel <daniel@shedaniel.me> | 2022-07-12 02:42:55 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2022-07-12 02:42:55 +0800 |
| commit | 10ee1d7d00d8e5f1958af946b12aea20a7529483 (patch) | |
| tree | 67b78f94e1f70ca7e83337120dc1ccf1f5d87441 /api/src/main/java | |
| parent | c734a77d256631d06ad454ec7f98442767718a9f (diff) | |
| download | RoughlyEnoughItems-10ee1d7d00d8e5f1958af946b12aea20a7529483.tar.gz RoughlyEnoughItems-10ee1d7d00d8e5f1958af946b12aea20a7529483.tar.bz2 RoughlyEnoughItems-10ee1d7d00d8e5f1958af946b12aea20a7529483.zip | |
Fix #977
Diffstat (limited to 'api/src/main/java')
| -rw-r--r-- | api/src/main/java/me/shedaniel/rei/api/common/display/SimpleGridMenuDisplay.java | 22 |
1 files changed, 22 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 ae4f1a641..214c14595 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 @@ -48,7 +48,9 @@ public interface SimpleGridMenuDisplay extends Display { * Returns the input width of the input entries. * * @return the input width of the input entries + * @deprecated use {@link #getInputWidth(int, int)} instead */ + @Deprecated(forRemoval = true) default int getInputWidth() { return getWidth(); } @@ -57,8 +59,28 @@ public interface SimpleGridMenuDisplay extends Display { * Returns the input height of the input entries. * * @return the input height of the input entries + * @deprecated use {@link #getInputHeight(int, int)} instead */ + @Deprecated(forRemoval = true) default int getInputHeight() { return getHeight(); } + + /** + * Returns the input width of the input entries. + * + * @return the input width of the input entries + */ + default int getInputWidth(int craftingWidth, int craftingHeight) { + return getInputWidth(); + } + + /** + * Returns the input height of the input entries. + * + * @return the input height of the input entries + */ + default int getInputHeight(int craftingWidth, int craftingHeight) { + return getInputHeight(); + } } |
