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?