public class ServerList extends Object
Constructor and Description |
---|
ServerList(Minecraft par1Minecraft) |
Modifier and Type | Method and Description |
---|---|
void |
addServerData(ServerData par1ServerData)
Adds the given ServerData instance to the list.
|
int |
countServers()
Counts the number of ServerData instances in the list.
|
ServerData |
getServerData(int par1)
Gets the ServerData instance stored for the given index in the list.
|
void |
loadServerList()
Loads a list of servers from servers.dat, by running ServerData.getServerDataFromNBTCompound on each NBT compound
found in the "servers" tag list.
|
void |
removeServerData(int par1)
Removes the ServerData instance stored for the given index in the list.
|
void |
saveServerList()
Runs getNBTCompound on each ServerData instance, puts everything into a "servers" NBT list and writes it to
servers.dat.
|
void |
swapServers(int par1,
int par2)
Takes two list indexes, and swaps their order around.
|
public ServerList(Minecraft par1Minecraft)
public void loadServerList()
public void saveServerList()
public ServerData getServerData(int par1)
public void removeServerData(int par1)
public void addServerData(ServerData par1ServerData)
public int countServers()
public void swapServers(int par1, int par2)