diff options
| author | shedaniel <daniel@shedaniel.me> | 2022-07-12 02:42:55 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2022-07-12 02:44:34 +0800 |
| commit | 2aca43edd6ffb7c765d93ef80dfdedfb9e369f00 (patch) | |
| tree | 8d4c7eb7123ccc376210e19728f5a5237c7298cd /api | |
| parent | 9b89a4aeb482a697ee52703ba154bf4309fbbff2 (diff) | |
| download | RoughlyEnoughItems-2aca43edd6ffb7c765d93ef80dfdedfb9e369f00.tar.gz RoughlyEnoughItems-2aca43edd6ffb7c765d93ef80dfdedfb9e369f00.tar.bz2 RoughlyEnoughItems-2aca43edd6ffb7c765d93ef80dfdedfb9e369f00.zip | |
Fix #977
Diffstat (limited to 'api')
| -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(); + } } |
