Jump to content

How To I Display Custom Servers On A Gui?


SwagMaster9001

Recommended Posts

I'm extremely confused with this. I checked out of code from GuiMultiplayer in minecraft.client.gui. Which is.

        if (!this.initialized)
        {
            this.initialized = true;         
            this.savedServerList = new ServerList(this.mc);
            this.savedServerList.loadServerList();

            this.serverListSelector = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);
            this.serverListSelector.func_148195_a(this.savedServerList);
        } else {
            this.serverListSelector.setDimensions(this.width, this.height, 32, this.height - 64);
        }

 

But I can't get it to display anything on the GUI if I enter the code and import the things required. Also it says.

The constructor ServerSelectionList(GuiMod, Minecraft, int, int, int, int, int) is undefined.

On the line

 this.serverListSelector = new ServerSelectionList(this, this.mc, this.width, this.height, 32, this.height - 64, 36);

 

Please help? Is there another way to display the list of servers? Or enter custom servers?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.