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.Logger
private static final int
private final Minecraft
private final List
<ServerData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ServerData pServer, boolean pHidden) get
(int pIndex) Gets the ServerData instance stored for the given index in the list.void
load()
void
remove
(ServerData pServerData) void
replace
(int pIndex, ServerData pServer) void
save()
static void
saveSingleServer
(ServerData pServer) private static boolean
set
(ServerData pServer, List<ServerData> pServerList) int
size()
void
swap
(int pPos1, int pPos2) 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 pPos1, int pPos2) Takes two list indexes, and swaps their order around. -
replace
-
set
-
saveSingleServer
-