diff options
author | Juuxel <kasperi.kauppi@gmail.com> | 2020-06-18 10:54:26 +0300 |
---|---|---|
committer | Juuxel <kasperi.kauppi@gmail.com> | 2020-06-18 10:54:26 +0300 |
commit | 6b613ed909e06f4d043f14d37db3c74b2fb14c86 (patch) | |
tree | 0f9cb9097d8123913dfb51337eac5b29dfe89c9e /GuiTest/src | |
parent | da58f177401b99f59bfe4178c3fee5537f59c194 (diff) | |
download | LibGui-6b613ed909e06f4d043f14d37db3c74b2fb14c86.tar.gz LibGui-6b613ed909e06f4d043f14d37db3c74b2fb14c86.tar.bz2 LibGui-6b613ed909e06f4d043f14d37db3c74b2fb14c86.zip |
Move WWidget.addTooltip to use StringRenderables
Diffstat (limited to 'GuiTest/src')
-rw-r--r-- | GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java b/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java index 45426b4..bcc2584 100644 --- a/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java +++ b/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java @@ -17,7 +17,7 @@ import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.text.LiteralText; -import net.minecraft.text.Text; +import net.minecraft.text.StringRenderable; import net.minecraft.util.Identifier; public class TestClientGui extends LightweightGuiDescription { @@ -39,7 +39,7 @@ public class TestClientGui extends LightweightGuiDescription { this.setRootPanel(root); WLabel title = new WLabel(new LiteralText("Client Test Gui"), WLabel.DEFAULT_TEXT_COLOR) { @Override - public void addTooltip(List<Text> tooltip) { + public void addTooltip(List<StringRenderable> tooltip) { tooltip.add(new LiteralText("Radical!")); } }; |