Class ServerList

java.lang.Object
net.minecraft.client.multiplayer.ServerList

public class ServerList extends Object
  • Field Details

  • Constructor Details

    • ServerList

      public ServerList(Minecraft pMinecraft)
  • Method Details

    • load

      public void load()
    • save

      public void save()
    • get

      public ServerData get(int pIndex)
      Gets the ServerData instance stored for the given index in the list.
    • get

      @Nullable public ServerData get(String pIp)
    • unhide

      @Nullable public ServerData unhide(String pIp)
    • remove

      public void remove(ServerData pServerData)
    • add

      public void add(ServerData pServer, boolean pHidden)
    • size

      public int size()
    • swap

      public void swap(int pPos1, int pPos2)
      Takes two list indexes, and swaps their order around.
    • replace

      public void replace(int pIndex, ServerData pServer)
    • set

      private static boolean set(ServerData pServer, List<ServerData> pServerList)
    • saveSingleServer

      public static void saveSingleServer(ServerData pServer)