aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java
index ad1e0223d..7392b257a 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/LabelWidget.java
@@ -43,6 +43,11 @@ public class LabelWidget extends WidgetWithBounds {
this.defaultColor = defaultColor;
}
+ public LabelWidget color(int defaultColor) {
+ this.defaultColor = defaultColor;
+ return this;
+ }
+
@Override
public Rectangle getBounds() {
int width = font.getStringWidth(text);