Package net.minecraft.client.multiplayer
Class ServerList
java.lang.Object
net.minecraft.client.multiplayer.ServerList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ServerData> private static final ConsecutiveExecutorprivate static final org.slf4j.Loggerprivate static final intprivate final Minecraftprivate final List<ServerData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ServerData pServer, boolean pHidden) get(int pIndex) Gets the ServerData instance stored for the given index in the list.voidload()voidremove(ServerData pServerData) voidreplace(int pIndex, ServerData pServer) voidsave()static voidsaveSingleServer(ServerData pServer) private static booleanset(ServerData pServer, List<ServerData> pServerList) intsize()voidswap(int pPos1, int pPos2) Takes two list indexes, and swaps their order around.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
IO_EXECUTOR
-
MAX_HIDDEN_SERVERS
private static final int MAX_HIDDEN_SERVERS- See Also:
-
minecraft
-
serverList
-
-
Constructor Details
-
ServerList
-
-
Method Details
-
load
public void load() -
save
public void save() -
get
Gets the ServerData instance stored for the given index in the list. -
get
-
unhide
-
remove
-
add
-
size
public int size() -
swap
public void swap(int pPos1, int pPos2) Takes two list indexes, and swaps their order around. -
replace
-
set
-
saveSingleServer
-