LogisticsPipes.log.fatal(this.toString());
new RuntimeException("Couldn't find " + clazz.getName() + ", pipe didn't exsist").printStackTrace();
}
return null;
}
LogisticsModule module = null;
if(this.slot == ModulePositionType.IN_PIPE) {
module = ((CoreRoutedPipe)pipe.pipe).getLogisticsModule();
} else if (this.slot == ModulePositionType.IN_HAND) {
throw new UnsupportedOperationException("NO IN_HAND FOR THIS PACKET TYPE");
} else {
if(!(pipe.pipe instanceof PipeLogisticsChassi)) {
if(LPConstants.DEBUG) {
LogisticsPipes.log.fatal(this.toString());
new RuntimeException("Couldn't find " + clazz.getName() + ", pipe wasn't a chassi pipe").printStackTrace();
}
return null;
}
module = ((PipeLogisticsChassi)pipe.pipe).getLogisticsModule().getSubModule(positionInt);
}
if(module != null) {
if(!(clazz.isAssignableFrom(module.getClass()))) {
if(LPConstants.DEBUG) {
LogisticsPipes.log.fatal(this.toString());
new RuntimeException("Couldn't find " + clazz.getName() + ", found " + module.getClass()).printStackTrace();
}
return null;
}
} else {
if(LPConstants.DEBUG) {