Examples of determineFoliageColour()


Examples of forestry.arboriculture.gadgets.TileLeaves.determineFoliageColour()

    leaves.setDecorative();

    IIcon leavesIcon = leaves.getIcon(Proxies.render.fancyGraphicsEnabled());
    if (leavesIcon == null)
      return;
    int color = leaves.determineFoliageColour();

    float r1 = (float)(color >> 16 & 255) / 255.0F;
    float g1 = (float)(color >> 8 & 255) / 255.0F;
    float b1 = (float)(color & 255) / 255.0F;
    GL11.glColor4f(r1, g1, b1, 1.0F);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.