Search in sources :

Example 6 with IVertexOperation

use of codechicken.lib.render.pipeline.IVertexOperation in project GregTech by GregTechCE.

the class SteamBoiler method renderMetaTileEntity.

@Override
public void renderMetaTileEntity(CCRenderState renderState, IVertexOperation[] pipeline) {
    IVertexOperation[] colouredPipeline = ArrayUtils.add(pipeline, new ColourMultiplier(paintingColor));
    if (isHighPressure) {
        Textures.STEAM_CASING_STEEL.render(renderState, colouredPipeline);
    } else
        Textures.STEAM_CASING_BRONZE.render(renderState, colouredPipeline);
    renderer.render(renderState, pipeline, getFrontFacing(), fuelBurnTimeLeft > 0);
}
Also used : IVertexOperation(codechicken.lib.render.pipeline.IVertexOperation) ColourMultiplier(codechicken.lib.render.pipeline.ColourMultiplier)

Aggregations

IVertexOperation (codechicken.lib.render.pipeline.IVertexOperation)6 ColourMultiplier (codechicken.lib.render.pipeline.ColourMultiplier)4 CCRenderState (codechicken.lib.render.CCRenderState)2 Translation (codechicken.lib.vec.Translation)2 MetaTileEntity (gregtech.api.metatileentity.MetaTileEntity)2 TextureAtlasSprite (net.minecraft.client.renderer.texture.TextureAtlasSprite)2 EnumFacing (net.minecraft.util.EnumFacing)2 BlockFace (codechicken.lib.render.BlockRenderer.BlockFace)1 BlockRenderingRegistry (codechicken.lib.render.block.BlockRenderingRegistry)1 ICCBlockRenderer (codechicken.lib.render.block.ICCBlockRenderer)1 IItemRenderer (codechicken.lib.render.item.IItemRenderer)1 TextureUtils (codechicken.lib.texture.TextureUtils)1 IIconRegister (codechicken.lib.texture.TextureUtils.IIconRegister)1 Cuboid6 (codechicken.lib.vec.Cuboid6)1 IconTransformation (codechicken.lib.vec.uv.IconTransformation)1 GTValues (gregtech.api.GTValues)1 BlockMachine (gregtech.api.block.machines.BlockMachine)1 MachineItemBlock (gregtech.api.block.machines.MachineItemBlock)1 GTLog (gregtech.api.util.GTLog)1 IOException (java.io.IOException)1