diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-05-27 18:03:49 +0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-05-27 18:03:49 +0300 |
commit | d52ec93090f68c80d49735d911f79e0de01990ee (patch) | |
tree | 6a7075614b55f87a99eab466331fd79abb3a2a20 /GuiTest | |
parent | 494e8a6d34bb47e2e6f5c4301d0dcb8863e45f23 (diff) | |
download | LibGui-d52ec93090f68c80d49735d911f79e0de01990ee.tar.gz LibGui-d52ec93090f68c80d49735d911f79e0de01990ee.tar.bz2 LibGui-d52ec93090f68c80d49735d911f79e0de01990ee.zip |
Add title position property to GuiDescriptions
The new field is used for both fullscreen and normal screens.
Also fixes titles being incorrectly positioned by default.
Diffstat (limited to 'GuiTest')
-rw-r--r-- | GuiTest/build.gradle | 5 | ||||
-rw-r--r-- | GuiTest/src/main/java/io/github/cottonmc/test/GuiBlockEntity.java | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/GuiTest/build.gradle b/GuiTest/build.gradle index 02c6d2e..ee1fa3b 100644 --- a/GuiTest/build.gradle +++ b/GuiTest/build.gradle @@ -52,10 +52,7 @@ tasks.withType(JavaCompile) { // this fixes some edge cases with special characters not displaying correctly // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html options.encoding = "UTF-8" - - if (JavaVersion.current().isJava9Compatible()) { - options.release.set 8 - } + options.release.set 16 } java { diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/GuiBlockEntity.java b/GuiTest/src/main/java/io/github/cottonmc/test/GuiBlockEntity.java index 82188d2..d443770 100644 --- a/GuiTest/src/main/java/io/github/cottonmc/test/GuiBlockEntity.java +++ b/GuiTest/src/main/java/io/github/cottonmc/test/GuiBlockEntity.java @@ -36,7 +36,7 @@ public class GuiBlockEntity extends BlockEntity implements ImplementedInventory, @Override public Text getDisplayName() { - return new LiteralText(""); // no title + return new LiteralText("test title"); } @Nullable |