aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
index e9c34e7..4a4e63c 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
@@ -136,4 +136,26 @@ public class WText extends WWidget {
this.darkmodeColor = this.color;
return this;
}
+
+ /**
+ * Gets the alignment of this text widget.
+ *
+ * @return the alignment
+ * @since 1.9.0
+ */
+ public Alignment getAlignment() {
+ return alignment;
+ }
+
+ /**
+ * Sets the alignment of this text widget.
+ *
+ * @param alignment the new alignment
+ * @return this widget
+ * @since 1.9.0
+ */
+ public WText setAlignment(Alignment alignment) {
+ this.alignment = alignment;
+ return this;
+ }
}