Search in sources :

Example 1 with NpcExporter

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

the class NpcManager method dump.

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

Aggregations

File (java.io.File)1 NpcDefinition (net.runelite.cache.definitions.NpcDefinition)1 NpcExporter (net.runelite.cache.definitions.exporters.NpcExporter)1 FSFile (net.runelite.cache.fs.FSFile)1