diff options
Diffstat (limited to 'api/src/main/java/me')
| -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(); + } } |
