Collection<Class<? extends TubeModule>> modules = ModuleRegistrator.modules.values();
Iterator<Item> itemIterator = moduleItems.iterator();
Iterator<Class<? extends TubeModule>> moduleIterator = modules.iterator();
while(itemIterator.hasNext()) {
try {
MinecraftForgeClient.registerItemRenderer(itemIterator.next(), new RenderItemTubeModule(moduleIterator.next().newInstance()));
} catch(Exception e) {
Log.error("Something happened when registering tube module renderers!");
e.printStackTrace();
}
}