diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-04-26 00:19:03 +0300 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-04-26 00:19:03 +0300 |
commit | 095e92e3508f8a32d1910c0619afb31df0657598 (patch) | |
tree | 3babb1d629a29acc7b34f89e2b5ecf0cd08b53a6 /src | |
parent | 0706a4f52d768fbb485c5c0000ffc8d187703bbe (diff) | |
download | LibGui-095e92e3508f8a32d1910c0619afb31df0657598.tar.gz LibGui-095e92e3508f8a32d1910c0619afb31df0657598.tar.bz2 LibGui-095e92e3508f8a32d1910c0619afb31df0657598.zip |
Add missing alignment accessors to WText
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java | 22 |
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; + } } |