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);
}
}
}
Aggregations