Package net.minecraft.src
Class ServerList
java.lang.Object
net.minecraft.src.ServerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServerData(ServerData par1ServerData) Adds the given ServerData instance to the list.intCounts the number of ServerData instances in the list.getServerData(int par1) Gets the ServerData instance stored for the given index in the list.voidLoads a list of servers from servers.dat, by running ServerData.getServerDataFromNBTCompound on each NBT compound found in the "servers" tag list.voidremoveServerData(int par1) Removes the ServerData instance stored for the given index in the list.voidRuns getNBTCompound on each ServerData instance, puts everything into a "servers" NBT list and writes it to servers.dat.voidswapServers(int par1, int par2) Takes two list indexes, and swaps their order around.
-
Constructor Details
-
ServerList
-
-
Method Details
-
loadServerList
public void loadServerList()Loads a list of servers from servers.dat, by running ServerData.getServerDataFromNBTCompound on each NBT compound found in the "servers" tag list. -
saveServerList
public void saveServerList()Runs getNBTCompound on each ServerData instance, puts everything into a "servers" NBT list and writes it to servers.dat. -
getServerData
Gets the ServerData instance stored for the given index in the list. -
removeServerData
public void removeServerData(int par1) Removes the ServerData instance stored for the given index in the list. -
addServerData
Adds the given ServerData instance to the list. -
countServers
public int countServers()Counts the number of ServerData instances in the list. -
swapServers
public void swapServers(int par1, int par2) Takes two list indexes, and swaps their order around.
-