update to 1.19.3 and starts of clickgui

This commit is contained in:
kawaiizenbo 2022-12-07 12:40:49 -07:00
parent 412cabff8a
commit 05ff377b5c
11 changed files with 115 additions and 15 deletions

View file

@ -49,8 +49,14 @@ public abstract class TitleScreenMixin extends Screen
@Inject(at = @At("TAIL"), method = "init")
private void altManagerButton(CallbackInfo callbackInfo)
{
this.addDrawableChild(new ButtonWidget(this.width - 102, 2, 100, 20, Text.literal("Alt Manager"), (button) -> {
MinecraftClient.getInstance().setScreen(AltManagerScreen.INSTANCE);
})).active = true;
this.addDrawableChild(ButtonWidget.builder(Text.literal("Alt Manager"), this::gotoAltManagerScreen)
.position(this.width - 102, 2)
.size(100, 20)
.build());
}
private void gotoAltManagerScreen(ButtonWidget button)
{
MinecraftClient.getInstance().setScreen(AltManagerScreen.INSTANCE);
}
}