|
17 | 17 | import net.minecraft.client.gui.components.AbstractWidget; |
18 | 18 | import net.minecraft.client.gui.components.Button; |
19 | 19 | import net.minecraft.client.gui.screens.Screen; |
| 20 | +import net.minecraft.client.gui.GuiGraphics; |
| 21 | +import net.minecraft.client.gui.Font; |
20 | 22 | import net.minecraft.client.gui.screens.TitleScreen; |
21 | 23 | import net.minecraft.client.resources.language.I18n; |
22 | 24 | import net.minecraft.network.chat.Component; |
@@ -84,6 +86,17 @@ private void onTick(CallbackInfo ci) |
84 | 86 | altsButton.setY(realmsButton.getY()); |
85 | 87 | } |
86 | 88 |
|
| 89 | + @Inject(at = @At("TAIL"), |
| 90 | + method = "render(Lnet/minecraft/client/gui/GuiGraphics;IIF)V") |
| 91 | + private void onRender(GuiGraphics graphics, int mouseX, int mouseY, |
| 92 | + float partialTicks, CallbackInfo ci) |
| 93 | + { |
| 94 | + Font font = minecraft.font; |
| 95 | + java.lang.String text = "Wurst 7.51.2 Modified by CevAPI"; |
| 96 | + graphics.drawString(font, Component.literal(text).getVisualOrderText(), |
| 97 | + 4, 4, 0xFFFFFFFF, true); |
| 98 | + } |
| 99 | + |
87 | 100 | /** |
88 | 101 | * Stops the multiplayer button being grayed out if the user's Microsoft |
89 | 102 | * account is parental-control'd or banned from online play. |
|
0 commit comments