Package tconstruct.library.tools

Examples of tconstruct.library.tools.CustomMaterial


    @Override
    protected int getDefaultColor(int renderPass, int materialID) {
        // fletchling uses custom material
        if(renderPass == 2) {
            CustomMaterial mat = TConstructRegistry.getCustomMaterial(materialID, FletchingMaterial.class);
            if(mat != null)
                return mat.color;
        }

        return super.getDefaultColor(renderPass, materialID);
View Full Code Here


    @Override
    protected int getDefaultColor(int renderPass, int materialID) {
        // bowstring uses custom material
        if(renderPass == 0) {
            CustomMaterial mat = TConstructRegistry.getCustomMaterial(materialID, BowstringMaterial.class);
            if(mat != null)
                return mat.color;
        }

        return super.getDefaultColor(renderPass, materialID);
View Full Code Here

TOP

Related Classes of tconstruct.library.tools.CustomMaterial

Copyright © 2018 www.massapicom. 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.