Search in sources :

Example 1 with ItemExporter

use of net.runelite.cache.definitions.exporters.ItemExporter in project runelite by runelite.

the class ItemManager method export.

public void export(File out) throws IOException {
    out.mkdirs();
    for (ItemDefinition def : items.values()) {
        ItemExporter exporter = new ItemExporter(def);
        File targ = new File(out, def.id + ".json");
        exporter.exportTo(targ);
    }
}
Also used : ItemExporter(net.runelite.cache.definitions.exporters.ItemExporter) ItemDefinition(net.runelite.cache.definitions.ItemDefinition) File(java.io.File) FSFile(net.runelite.cache.fs.FSFile)

Aggregations

File (java.io.File)1 ItemDefinition (net.runelite.cache.definitions.ItemDefinition)1 ItemExporter (net.runelite.cache.definitions.exporters.ItemExporter)1 FSFile (net.runelite.cache.fs.FSFile)1