private void loadIdCounts()
    {
        try
        {
            idCounts.clear();

            if (saveHandler == null)
            {
                return;
            }

            File file = saveHandler.getMapFileFromName("idcounts");

            if (file != null && file.exists())
            {
                DataInputStream datainputstream = new DataInputStream(new FileInputStream(file));
                NBTTagCompound nbttagcompound = CompressedStreamTools.read(datainputstream);
                datainputstream.close();
                Iterator iterator = nbttagcompound.getTags().iterator();

                do
                {
                    if (!iterator.hasNext())
                    {
                        break;
                    }

                    NBTBase nbtbase = (NBTBase)iterator.next();

                    if (nbtbase instanceof NBTTagShort)
                    {
                        NBTTagShort nbttagshort = (NBTTagShort)nbtbase;
                        String s = nbttagshort.getName();
                        short word0 = nbttagshort.data;
                        idCounts.put(s, Short.valueOf(word0));
                    }
                }
                while (true);
            }
        }
        catch (Exception exception)
        {
            exception.printStackTrace();
        }
    }