From 2aca43edd6ffb7c765d93ef80dfdedfb9e369f00 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 12 Jul 2022 02:42:55 +0800 Subject: Fix #977 --- .../api/common/display/SimpleGridMenuDisplay.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'api/src/main/java/me/shedaniel') 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(); + } } -- cgit