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