Search in sources :

Example 1 with ILoadComplete

use of com.builtbroken.mc.core.registry.implement.ILoadComplete in project Engine by VoltzEngine-Project.

the class JsonContentLoader method loadComplete.

@Override
public void loadComplete() {
    debug.start("Phase: Load-Complete");
    final List<String> sortingProcessorList = getSortedProcessorList();
    for (String proccessorKey : sortingProcessorList) {
        if (generatedObjects.get(proccessorKey) != null && !generatedObjects.get(proccessorKey).isEmpty()) {
            for (IJsonGenObject obj : generatedObjects.get(proccessorKey)) {
                if (obj instanceof ILoadComplete) {
                    ((ILoadComplete) obj).onLoadCompleted();
                }
            }
        }
    }
    debug.log("Clearing data");
    clear();
    debug.end("Done...");
}
Also used : IJsonGenObject(com.builtbroken.mc.lib.json.imp.IJsonGenObject) ILoadComplete(com.builtbroken.mc.core.registry.implement.ILoadComplete)

Aggregations

ILoadComplete (com.builtbroken.mc.core.registry.implement.ILoadComplete)1 IJsonGenObject (com.builtbroken.mc.lib.json.imp.IJsonGenObject)1