How to change the title of the Minecraft Windows ?

Started by Teyko on

Topic category: Help with MCreator software

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to change the title of the Minecraft Windows ?

Hi ! I would like to change this :

When im in main menu (for example "Main menu")
In main menu

And when im in singleplayer (for example "Solo")

In singleplayer

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I edited the window title…
Fri, 03/26/2021 - 20:30

I edited the window title going on net.minecraft.client.minecraft  and editing the getWindowTitle into this

private String getWindowTitle() {
      StringBuilder stringbuilder = new StringBuilder("Main menu");
      ClientPlayNetHandler clientplaynethandler = this.getConnection();
      if (clientplaynethandler != null && clientplaynethandler.getNetworkManager().isChannelOpen()) {
         if (this.integratedServer != null && !this.integratedServer.getPublic()) {
            stringbuilder = new StringBuilder("Solo");
      }

      return stringbuilder.toString();
   }

I hope this fix your problems, probably this is not the cleanest way to do it, but I started coding today and it's the only way i found out

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how i can type this ? with a…
Thu, 05/06/2021 - 16:25

how i can type this ? with a personalised element ?