YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.multiplayer.ServerList Class Reference

Public Member Functions

 ServerList (Minecraft par1Minecraft)
 
void loadServerList ()
 
void saveServerList ()
 
ServerData getServerData (int par1)
 
void removeServerData (int par1)
 
void addServerData (ServerData par1ServerData)
 
int countServers ()
 
void swapServers (int par1, int par2)
 
void setServer (int par1, ServerData par2ServerData)
 

Static Public Member Functions

static void func_78852_b (ServerData par0ServerData)
 

Constructor & Destructor Documentation

net.minecraft.client.multiplayer.ServerList.ServerList ( Minecraft  par1Minecraft)

Member Function Documentation

void net.minecraft.client.multiplayer.ServerList.addServerData ( ServerData  par1ServerData)

Adds the given ServerData instance to the list.

int net.minecraft.client.multiplayer.ServerList.countServers ( )

Counts the number of ServerData instances in the list.

static void net.minecraft.client.multiplayer.ServerList.func_78852_b ( ServerData  par0ServerData)
static
ServerData net.minecraft.client.multiplayer.ServerList.getServerData ( int  par1)

Gets the ServerData instance stored for the given index in the list.

void net.minecraft.client.multiplayer.ServerList.loadServerList ( )

Loads a list of servers from servers.dat, by running ServerData.getServerDataFromNBTCompound on each NBT compound found in the "servers" tag list.

void net.minecraft.client.multiplayer.ServerList.removeServerData ( int  par1)

Removes the ServerData instance stored for the given index in the list.

void net.minecraft.client.multiplayer.ServerList.saveServerList ( )

Runs getNBTCompound on each ServerData instance, puts everything into a "servers" NBT list and writes it to servers.dat.

void net.minecraft.client.multiplayer.ServerList.setServer ( int  par1,
ServerData  par2ServerData 
)

Sets the given index in the list to the given ServerData instance.

void net.minecraft.client.multiplayer.ServerList.swapServers ( int  par1,
int  par2 
)

Takes two list indexes, and swaps their order around.


The documentation for this class was generated from the following file: