aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-04-30 01:08:07 +0800
committershedaniel <daniel@shedaniel.me>2020-04-30 02:27:38 +0800
commitbe7b641955a197d55251c3cbd4a314476cf94fb3 (patch)
tree1747230438e2daa7d8debd2f661a69ba11f4ea23 /src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java
parent43614d50fe2d965246b8ee4522f0ece646031ae9 (diff)
downloadRoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.tar.gz
RoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.tar.bz2
RoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.zip
Update to 20w18a and add recipe exporter
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java
index 6ce89c6f9..34157de67 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/RecipeChoosePageWidget.java
@@ -116,14 +116,14 @@ public class RecipeChoosePageWidget extends DraggableWidget {
@Override
public void render(MatrixStack matrices, int i, int i1, float v) {
- font.method_27528(matrices, new TranslatableText("text.rei.choose_page"), bounds.x + 5, bounds.y + 5, REIHelper.getInstance().isDarkThemeEnabled() ? 0xFFBBBBBB : 0xFF404040);
+ font.draw(matrices, new TranslatableText("text.rei.choose_page"), bounds.x + 5, bounds.y + 5, REIHelper.getInstance().isDarkThemeEnabled() ? 0xFFBBBBBB : 0xFF404040);
String endString = String.format(" /%d", maxPage);
- int width = font.getStringWidth(endString);
+ int width = font.getWidth(endString);
font.draw(matrices, endString, bounds.x + bounds.width - 5 - width, bounds.y + 22, REIHelper.getInstance().isDarkThemeEnabled() ? 0xFFBBBBBB : 0xFF404040);
}
});
String endString = String.format(" /%d", maxPage);
- int width = font.getStringWidth(endString);
+ int width = font.getWidth(endString);
this.widgets.add(textFieldWidget = new TextFieldWidget(bounds.x + 7, bounds.y + 16, bounds.width - width - 12, 18));
textFieldWidget.setMaxLength(10000);
textFieldWidget.stripInvalid = s -> {