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 ProcessorMailbox<Runnable> private static final org.slf4j.Loggerprivate static final intprivate final Minecraftprivate final List<ServerData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ServerData server, boolean hidden) get(int index) Gets the ServerData instance stored for the given index in the list.voidload()voidremove(ServerData serverData) voidreplace(int index, ServerData server) voidsave()static voidsaveSingleServer(ServerData server) private static booleanset(ServerData server, List<ServerData> serverList) intsize()voidswap(int pos1, int pos2) Takes two list indexes, and swaps their order around.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
IO_MAILBOX
-
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 pos1, int pos2) Takes two list indexes, and swaps their order around. -
replace
-
set
-
saveSingleServer
-