aboutsummaryrefslogtreecommitdiff
path: root/GuiTest
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-05-27 18:03:49 +0300
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-05-27 18:03:49 +0300
commitd52ec93090f68c80d49735d911f79e0de01990ee (patch)
tree6a7075614b55f87a99eab466331fd79abb3a2a20 /GuiTest
parent494e8a6d34bb47e2e6f5c4301d0dcb8863e45f23 (diff)
downloadLibGui-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.gradle5
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/GuiBlockEntity.java2
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