    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;
    012
    013@SideOnly(Side.CLIENT)
    014public class Locations
    015{
    016    public List field_96599_a;
    017    public Location field_96598_b;
    018
    019    public static Locations func_98174_a(String par0Str)
    020    {
    021        Locations locations = new Locations();
    022        locations.field_96599_a = new ArrayList();
    023
    024        try
    025        {
    026            JsonRootNode jsonrootnode = (new JdomParser()).parse(par0Str);
    027
    028            if (jsonrootnode.isArrayNode(new Object[] {"locations"}))
    029            {
    030                Iterator iterator = jsonrootnode.getArrayNode(new Object[] {"locations"}).iterator();
    031
    032                while (iterator.hasNext())
    033                {
    034                    JsonNode jsonnode = (JsonNode)iterator.next();
    035                    locations.field_96599_a.add(Location.func_98167_a(jsonnode));
    036                }
    037            }
    038            locations.field_96598_b = Location.func_98168_a(jsonrootnode, "suggestion");
    039        }
    040        catch (InvalidSyntaxException invalidsyntaxexception)
    041        {
    042            ;
    043        }
    044        catch (IllegalArgumentException illegalargumentexception)
    045        {
    046            ;
    047        }
    048
    049        return locations;
    050    }
    051}