From d52ec93090f68c80d49735d911f79e0de01990ee Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Thu, 27 May 2021 18:03:49 +0300 Subject: 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. --- GuiTest/src/main/java/io/github/cottonmc/test/GuiBlockEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'GuiTest/src/main') 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 -- cgit