Source:
<code>public void preRegistryInit() { CommonModuleRegistry.getInstance().registerDefaultModules(); final DirectedGraph<Class<? extends RegistryModule>> graph = new DirectedGraph<>(); for (RegistryModule module : this.registryModules) { this.classMap.put(module.getClass(), module); addToGraph(module, graph); } for (CatalogRegistryModule<?> module : this.catalogRegistryMap.values()) { this.classMap.put(module.getClass(), module); addToGraph(module, graph); } this.orderedModules.addAll(TopologicalOrder.createOrderedLoad(graph)); registerModulePhase(); SpongeVillagerRegistry.registerVanillaTrades(); DataRegistrar.setupSerialization(SpongeImpl.getGame()); final List<Tuple<Class<? extends CatalogType>, CatalogRegistryModule<?>>> modules = new ArrayList<>(); for (Map.Entry<Class<? extends CatalogType>, CatalogRegistryModule<?>> entry : this.catalogRegistryMap.entrySet()) { modules.add(new Tuple<>(entry.getKey(), entry.getValue())); } modules.sort(Comparator.comparing(tuple -> tuple.getFirst().getSimpleName())); <START> final PrettyPrinter printer = new PrettyPrinter(100).add("Printing all Catalogs and their ID's").centre().hr() <END> .addWrapped("This is a test to print out all registered catalogs during initialization for their mapping, id's, and objects themselves."); for (Tuple<Class<? extends CatalogType>, CatalogRegistryModule<?>> module : modules) { printer.add(" %s : %s", "CatalogType", module.getFirst().getSimpleName()); final Collection<? extends CatalogType> all = module.getSecond().getAll(); final List<CatalogType> catalogTypes = new ArrayList<>(); for (CatalogType o : all) { catalogTypes.add(o); } catalogTypes.sort(Comparator.comparing(CatalogType::getId)); for (CatalogType catalogType : catalogTypes) { printer.add(" -%s", catalogType.getId()); } printer.hr(); } }</code><technical_language>Left in debug? leave put a system property</technical_language>

Target:
public void preRegistryInit() { CommonModuleRegistry.getInstance().registerDefaultModules(); final DirectedGraph<Class<? extends RegistryModule>> graph = new DirectedGraph<>(); for (RegistryModule module : this.registryModules) { this.classMap.put(module.getClass(), module); addToGraph(module, graph); } for (CatalogRegistryModule<?> module : this.catalogRegistryMap.values()) { this.classMap.put(module.getClass(), module); addToGraph(module, graph); } this.orderedModules.addAll(TopologicalOrder.createOrderedLoad(graph)); registerModulePhase(); SpongeVillagerRegistry.registerVanillaTrades(); DataRegistrar.setupSerialization(SpongeImpl.getGame()); final List<Tuple<Class<? extends CatalogType>, CatalogRegistryModule<?>>> modules = new ArrayList<>(); for (Map.Entry<Class<? extends CatalogType>, CatalogRegistryModule<?>> entry : this.catalogRegistryMap.entrySet()) { modules.add(new Tuple<>(entry.getKey(), entry.getValue())); } modules.sort(Comparator.comparing(tuple -> tuple.getFirst().getSimpleName())); if (PRINT_CATALOG_TYPES) { final PrettyPrinter printer = new PrettyPrinter(100).add("Printing all Catalogs and their ID's").centre().hr() .addWrapped( "This is a test to print out all registered catalogs during initialization for their mapping, id's, and objects themselves."); for (Tuple<Class<? extends CatalogType>, CatalogRegistryModule<?>> module : modules) { printer.add(" %s : %s", "CatalogType", module.getFirst().getSimpleName()); final Collection<? extends CatalogType> all = module.getSecond().getAll(); final List<CatalogType> catalogTypes = new ArrayList<>(); for (CatalogType o : all) { catalogTypes.add(o); } catalogTypes.sort(Comparator.comparing(CatalogType::getId)); for (CatalogType catalogType : catalogTypes) { printer.add(" -%s", catalogType.getId()); } printer.hr(); } printer.trace(System.err, SpongeImpl.getLogger(), Level.DEBUG); } }