use of org.terasology.gestalt.module.Module in project Terasology by MovingBlocks.
the class ModulesMetric method updateModules.
private void updateModules() {
ModuleManager moduleManager = context.get(ModuleManager.class);
ModuleEnvironment moduleEnvironment = moduleManager.getEnvironment();
modules.clear();
Iterator<Module> iterator = moduleEnvironment.iterator();
while (iterator.hasNext()) {
Module next = iterator.next();
modules.add(next);
}
}
Aggregations