Java Code Examples for codechicken.lib.texture.TextureUtils#getMissingSprite()

The following examples show how to use codechicken.lib.texture.TextureUtils#getMissingSprite() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MetaTileEntity.java    From GregTech with GNU Lesser General Public License v3.0 5 votes vote down vote up
/**
 * Renders this meta tile entity
 * Note that you shouldn't refer to world-related information in this method, because it
 * will be called on ItemStacks too
 *
 * @param renderState render state (either chunk batched or item)
 * @param pipeline    default set of pipeline transformations
 */
@SideOnly(Side.CLIENT)
public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation, IVertexOperation[] pipeline) {
    TextureAtlasSprite atlasSprite = TextureUtils.getMissingSprite();
    IVertexOperation[] renderPipeline = ArrayUtils.add(pipeline, new ColourMultiplier(GTUtility.convertRGBtoOpaqueRGBA_CL(getPaintingColorForRendering())));
    for (EnumFacing face : EnumFacing.VALUES) {
        Textures.renderFace(renderState, translation, renderPipeline, face, Cuboid6.full, atlasSprite);
    }
}
 
Example 2
Source File: ModelProperties.java    From CodeChickenLib with GNU Lesser General Public License v2.1 5 votes vote down vote up
public TextureAtlasSprite getParticleTexture() {
    //TODO, 1.13, Force ModelProperties to be constructed after texture stitching.
    if (particle == null) {
        particle = TextureUtils.getMissingSprite();
    }
    return particle;
}
 
Example 3
Source File: MetaTileEntityRenderer.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public TextureAtlasSprite getParticleTexture() {
    return TextureUtils.getMissingSprite();
}
 
Example 4
Source File: FluidPipeRenderer.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public TextureAtlasSprite getParticleTexture() {
    return TextureUtils.getMissingSprite();
}
 
Example 5
Source File: InvPipeRenderer.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public TextureAtlasSprite getParticleTexture() {
    return TextureUtils.getMissingSprite();
}
 
Example 6
Source File: CableRenderer.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public TextureAtlasSprite getParticleTexture() {
    return TextureUtils.getMissingSprite();
}
 
Example 7
Source File: IModelParticleProvider.java    From CodeChickenLib with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
default TextureAtlasSprite getParticleTexture() {
    return TextureUtils.getMissingSprite();
}
 
Example 8
Source File: CCBakeryModel.java    From CodeChickenLib with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public TextureAtlasSprite getParticleTexture() {
    return TextureUtils.getMissingSprite();
}
 
Example 9
Source File: IItemRenderer.java    From CodeChickenLib with GNU Lesser General Public License v2.1 votes vote down vote up
@Override default TextureAtlasSprite getParticleTexture() { return TextureUtils.getMissingSprite(); }