    001package net.minecraft.client.mco;
    002
    003import argo.jdom.JdomParser;
    004import argo.jdom.JsonNode;
    005import argo.jdom.JsonRootNode;
    006import argo.saj.InvalidSyntaxException;
    007import cpw.mods.fml.relauncher.Side;
    008import cpw.mods.fml.relauncher.SideOnly;
    009import java.util.ArrayList;
    010import java.util.Iterator;
    011import java.util.List;
    012import net.minecraft.util.ValueObject;
    013
    014@SideOnly(Side.CLIENT)
    015public class ValueObjectList extends ValueObject
    016{
    017    public List field_96430_d;
    018
    019    public static ValueObjectList func_98161_a(String par0Str)
    020    {
    021        ValueObjectList valueobjectlist = new ValueObjectList();
    022        valueobjectlist.field_96430_d = new ArrayList();
    023
    024        try
    025        {
    026            JsonRootNode jsonrootnode = (new JdomParser()).parse(par0Str);
    027
    028            if (jsonrootnode.isArrayNode(new Object[] {"servers"}))
    029            {
    030                Iterator iterator = jsonrootnode.getArrayNode(new Object[] {"servers"}).iterator();
    031
    032                while (iterator.hasNext())
    033                {
    034                    JsonNode jsonnode = (JsonNode)iterator.next();
    035                    valueobjectlist.field_96430_d.add(McoServer.func_98163_a(jsonnode));
    036                }
    037            }
    038        }
    039        catch (InvalidSyntaxException invalidsyntaxexception)
    040        {
    041            ;
    042        }
    043        catch (IllegalArgumentException illegalargumentexception)
    044        {
    045            ;
    046        }
    047
    048        return valueobjectlist;
    049    }
    050}