use of logisticspipes.pipes.tubes.HSTubeLine in project LogisticsPipes by RS485.
the class LineTubeRenderer method renderToList.
@Override
public void renderToList(CoreUnroutedPipe pipe, List<RenderEntry> objectsToRender) {
if (pipe instanceof HSTubeLine) {
HSTubeLine tube = (HSTubeLine) pipe;
if (tube.getOrientation() != null) {
TubeLineRenderOrientation speedupDirection = tube.getOrientation().getRenderOrientation();
objectsToRender.addAll(LineTubeRenderer.tubeLineBase.get(speedupDirection).stream().map(model -> new RenderEntry(model, new I3DOperation[] { new LPUVTransformationList(new LPUVTranslation(0, 0)) }, LineTubeRenderer.TEXTURE)).collect(Collectors.toList()));
}
}
}
Aggregations