use of pneumaticCraft.client.render.itemblock.RenderItemTubeModule in project PneumaticCraft by MineMaarten.
the class ClientProxy method registerModuleRenderers.
public void registerModuleRenderers() {
Collection<Item> moduleItems = ModuleRegistrator.moduleItems.values();
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();
}
}
}
Aggregations