aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-04-26 00:19:03 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-04-26 00:19:03 +0300
commit095e92e3508f8a32d1910c0619afb31df0657598 (patch)
tree3babb1d629a29acc7b34f89e2b5ecf0cd08b53a6 /src/main/java
parent0706a4f52d768fbb485c5c0000ffc8d187703bbe (diff)
downloadLibGui-095e92e3508f8a32d1910c0619afb31df0657598.tar.gz
LibGui-095e92e3508f8a32d1910c0619afb31df0657598.tar.bz2
LibGui-095e92e3508f8a32d1910c0619afb31df0657598.zip
Add missing alignment accessors to WText
Diffstat (limited to 'src/main/java')
-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;
+ }
}