}
}catch(Throwable t){
t.printStackTrace();
}
int itemID = this.getIDForPipe(Class);
DenItemPipe pipe = new DenItemPipe(itemID);
BlockGenericPipe.pipes.put(pipe.itemID, Class);
String name = "";
for (Annotation a : Class.getDeclaredAnnotations()) {
if (a instanceof PipeName) {
PipeName name1;
name1 = (PipeName) a;
name = name1.name();
}
}
pipe.name = name;
Pipe dummyPipe = createPipe(pipe.itemID);
if (dummyPipe != null) {
pipe.setPipeIconIndex(dummyPipe.getIconIndexForItem());
TransportProxy.proxy.setIconProviderFromPipe(pipe, dummyPipe);
}
DenPipesCore.proxy.registerPipeRendering(pipe);
return pipe;
}