@Environment(value=CLIENT) public class ServerList extends Object
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private static Logger |
LOGGER |
private List<ServerInfo> |
servers |
Constructor and Description |
---|
ServerList(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
void |
add(ServerInfo serverInfo) |
ServerInfo |
get(int int2) |
void |
loadFile() |
void |
remove(ServerInfo serverInfo) |
void |
saveFile() |
void |
set(int index,
ServerInfo serverInfo) |
int |
size() |
void |
swapEntries(int index1,
int int2) |
static void |
updateServerListEntry(ServerInfo e) |
private static final Logger LOGGER
private final MinecraftClient client
private final List<ServerInfo> servers
public ServerList(MinecraftClient client)
public void loadFile()
public void saveFile()
public ServerInfo get(int int2)
public void remove(ServerInfo serverInfo)
public void add(ServerInfo serverInfo)
public int size()
public void swapEntries(int index1, int int2)
public void set(int index, ServerInfo serverInfo)
public static void updateServerListEntry(ServerInfo e)