Search in sources :

Example 1 with InterfaceExporter

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

the class InterfaceManager method export.

public void export(File out) throws IOException {
    out.mkdirs();
    for (InterfaceDefinition[] defs : interfaces) {
        if (defs == null) {
            continue;
        }
        for (InterfaceDefinition def : defs) {
            if (def == null) {
                continue;
            }
            InterfaceExporter exporter = new InterfaceExporter(def);
            File folder = new File(out, "" + (def.id >>> 16));
            folder.mkdirs();
            File targ = new File(folder, (def.id & 0xffff) + ".json");
            exporter.exportTo(targ);
        }
    }
}
Also used : InterfaceDefinition(net.runelite.cache.definitions.InterfaceDefinition) InterfaceExporter(net.runelite.cache.definitions.exporters.InterfaceExporter) File(java.io.File) FSFile(net.runelite.cache.fs.FSFile)

Aggregations

File (java.io.File)1 InterfaceDefinition (net.runelite.cache.definitions.InterfaceDefinition)1 InterfaceExporter (net.runelite.cache.definitions.exporters.InterfaceExporter)1 FSFile (net.runelite.cache.fs.FSFile)1