update to 1.19.3 and starts of clickgui
This commit is contained in:
parent
412cabff8a
commit
05ff377b5c
11 changed files with 115 additions and 15 deletions
|
@ -38,7 +38,7 @@ public abstract class ChatInputSuggestorMixin
|
|||
|
||||
@Shadow private SuggestionWindow window;
|
||||
|
||||
@Shadow protected abstract void showCommandSuggestions();
|
||||
@Shadow abstract void showCommandSuggestions();
|
||||
|
||||
@Inject(method = "refresh",
|
||||
at = @At(value = "INVOKE", target = "Lcom/mojang/brigadier/StringReader;canRead()Z", remap = false),
|
||||
|
|
|
@ -23,8 +23,14 @@ public class MultiplayerScreenMixin 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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue