Java Code Examples for codechicken.lib.render.TextureUtils#loadTextureColours()

The following examples show how to use codechicken.lib.render.TextureUtils#loadTextureColours() . 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: RemoteTexManager.java    From WirelessRedstone with MIT License 6 votes vote down vote up
public static void load(TextureMap registrar)
{
    for(int i = 0; i < icons.length; i++)
        icons[i] = TextureUtils.getTextureSpecial(registrar, "wrcbe_addons:remote_"+i);
    
    texOn = TextureUtils.loadTextureColours(new ResourceLocation("wrcbe_addons", "textures/items/remoteOn.png"));
    texOff = TextureUtils.loadTextureColours(new ResourceLocation("wrcbe_addons", "textures/items/remoteOff.png"));
    texGrad = TextureUtils.loadTextureColours(new ResourceLocation("wrcbe_addons", "textures/items/remoteGrad.png"));

    for(int i = 0; i < RedstoneEther.numcolours; i++)
    {
        processTexture(RedstoneEther.colours[i], false, getIconIndex(i, false));
        processTexture(RedstoneEther.colours[i], true, getIconIndex(i, true));
    }
    processTexture(0xFFFFFFFF, false, getIconIndex(-1, false));
    processTexture(0xFFFFFFFF, true, getIconIndex(-1, true));
}
 
Example 2
Source File: TriangTexManager.java    From WirelessRedstone with MIT License 4 votes vote down vote up
public static void loadTextures()
{
    texRing = TextureUtils.loadTextureColours(new ResourceLocation("wrcbe_addons", "textures/items/triangRing.png"));
    texGrad = TextureUtils.loadTextureColours(new ResourceLocation("wrcbe_addons", "textures/items/triangGrad.png"));
    processTexture(-1, 0);
}