Search in sources :

Example 1 with SimpleOverlayRenderer

use of gregtech.api.render.SimpleOverlayRenderer in project GregTech by GregTechCE.

the class MetaTileEntityItemCollector method renderMetaTileEntity.

@Override
public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation, IVertexOperation[] pipeline) {
    super.renderMetaTileEntity(renderState, translation, pipeline);
    SimpleOverlayRenderer renderer = isWorking ? Textures.BLOWER_ACTIVE_OVERLAY : Textures.BLOWER_OVERLAY;
    renderer.renderSided(EnumFacing.UP, renderState, translation, pipeline);
    Textures.AIR_VENT_OVERLAY.renderSided(EnumFacing.DOWN, renderState, translation, pipeline);
    Textures.PIPE_OUT_OVERLAY.renderSided(getFrontFacing(), renderState, translation, pipeline);
}
Also used : SimpleOverlayRenderer(gregtech.api.render.SimpleOverlayRenderer)

Example 2 with SimpleOverlayRenderer

use of gregtech.api.render.SimpleOverlayRenderer in project GregTech by GregTechCE.

the class MetaTileEntityFluidHatch method renderMetaTileEntity.

@Override
public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation, IVertexOperation[] pipeline) {
    super.renderMetaTileEntity(renderState, translation, pipeline);
    if (shouldRenderOverlay()) {
        SimpleOverlayRenderer renderer = isExportHatch ? Textures.PIPE_OUT_OVERLAY : Textures.PIPE_IN_OVERLAY;
        renderer.renderSided(getFrontFacing(), renderState, translation, pipeline);
        SimpleOverlayRenderer overlay = isExportHatch ? Textures.FLUID_HATCH_OUTPUT_OVERLAY : Textures.FLUID_HATCH_INPUT_OVERLAY;
        overlay.renderSided(getFrontFacing(), renderState, translation, pipeline);
    }
}
Also used : SimpleOverlayRenderer(gregtech.api.render.SimpleOverlayRenderer)

Example 3 with SimpleOverlayRenderer

use of gregtech.api.render.SimpleOverlayRenderer in project GregTech by GregTechCE.

the class MetaTileEntityEnergyHatch method renderMetaTileEntity.

@Override
public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation, IVertexOperation[] pipeline) {
    super.renderMetaTileEntity(renderState, translation, pipeline);
    if (shouldRenderOverlay()) {
        SimpleOverlayRenderer renderer = isExportHatch ? Textures.ENERGY_OUT_MULTI : Textures.ENERGY_IN_MULTI;
        renderer.renderSided(getFrontFacing(), renderState, translation, PipelineUtil.color(pipeline, GTValues.VC[getTier()]));
    }
}
Also used : SimpleOverlayRenderer(gregtech.api.render.SimpleOverlayRenderer)

Example 4 with SimpleOverlayRenderer

use of gregtech.api.render.SimpleOverlayRenderer in project GregTech by GregTechCE.

the class MetaTileEntityItemBus method renderMetaTileEntity.

@Override
public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation, IVertexOperation[] pipeline) {
    super.renderMetaTileEntity(renderState, translation, pipeline);
    if (shouldRenderOverlay()) {
        SimpleOverlayRenderer renderer = isExportHatch ? Textures.PIPE_OUT_OVERLAY : Textures.PIPE_IN_OVERLAY;
        renderer.renderSided(getFrontFacing(), renderState, translation, pipeline);
        SimpleOverlayRenderer overlay = isExportHatch ? Textures.ITEM_HATCH_OUTPUT_OVERLAY : Textures.ITEM_HATCH_INPUT_OVERLAY;
        overlay.renderSided(getFrontFacing(), renderState, translation, pipeline);
    }
}
Also used : SimpleOverlayRenderer(gregtech.api.render.SimpleOverlayRenderer)

Aggregations

SimpleOverlayRenderer (gregtech.api.render.SimpleOverlayRenderer)4