private void loadIdCounts() {
      try {
         this.idCounts.clear();
         if(this.saveHandler == null) {
            return;
         }

         File var1 = this.saveHandler.func_28113_a("idcounts");
         if(var1 != null && var1.exists()) {
            DataInputStream var2 = new DataInputStream(new FileInputStream(var1));
            NBTTagCompound var3 = CompressedStreamTools.func_1141_a(var2);
            var2.close();
            Iterator var4 = var3.func_28110_c().iterator();

            while(var4.hasNext()) {
               NBTBase var5 = (NBTBase)var4.next();
               if(var5 instanceof NBTTagShort) {
                  NBTTagShort var6 = (NBTTagShort)var5;
                  String var7 = var6.getKey();
                  short var8 = var6.shortValue;
                  this.idCounts.put(var7, Short.valueOf(var8));
               }
            }
         }
      } catch (Exception var9) {
         var9.printStackTrace();
      }

   }