Package net.minecraft.client.multiplayer
Class ServerList
- java.lang.Object
-
- net.minecraft.client.multiplayer.ServerList
-
public class ServerList extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addServerData(ServerData parServerData)
+ Adds the given ServerData instance to the list.int
countServers()
+ Counts the number of ServerData instances in the list.void
freeServerIcons()
void
func_147413_a(int parInt1, ServerData parServerData)
static void
func_147414_b(ServerData parServerData)
ServerData
getServerData(int parInt1)
+ Gets the ServerData instance stored for the given index in the list.static ServerList
getServerList()
static void
initServerList(Minecraft mc)
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
refreshServerPing()
void
removeServerData(int parInt1)
+ 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 parInt1, int parInt2)
+ Takes two list indexes, and swaps their order around.void
updateServerPing()
-
-
-
Method Detail
-
initServerList
public static void initServerList(Minecraft mc)
-
getServerList
public static ServerList getServerList()
-
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
public ServerData getServerData(int parInt1)
+ Gets the ServerData instance stored for the given index in the list.
-
removeServerData
public void removeServerData(int parInt1)
+ Removes the ServerData instance stored for the given index in the list.
-
addServerData
public void addServerData(ServerData parServerData)
+ 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 parInt1, int parInt2)
+ Takes two list indexes, and swaps their order around.
-
func_147413_a
public void func_147413_a(int parInt1, ServerData parServerData)
-
func_147414_b
public static void func_147414_b(ServerData parServerData)
-
freeServerIcons
public void freeServerIcons()
-
refreshServerPing
public void refreshServerPing()
-
updateServerPing
public void updateServerPing()
-
-