How can I open already made and customs screens? The code used in MainMenuScreen to open the settings and stuff doesn't work
@SubscribeEvent
public void openMainMenu(ClientChatEvent e) {
PlayerEntity p = Minecraft.getInstance().player;
if (e.getMessage().equals("test")) {
Minecraft.getInstance().setScreen(new MultiplayerScreen(null));
//p.sendMessage(ITextComponent.nullToEmpty("Open"), p.getUUID());
}
}
1 reply
Important Information
By using this site, you agree to our Terms of Use.