Package mods.railcraft.client.render.models

Examples of mods.railcraft.client.render.models.ModelTextured


        }
        return render;
    }

    public static ModelTextured getContentModel(Class eClass) {
        ModelTextured render = modelsContents.get(eClass);
        if (render == null && eClass != EntityMinecart.class) {
            render = getContentModel(eClass.getSuperclass());
            if (render == null) {
                render = emptyModel;
            }
View Full Code Here


            renderer.renderBlocks().renderBlockAsItem(block, blockMeta, 1);
            GL11.glPopMatrix();
            return;
        }

        ModelTextured contents = CartModelManager.getContentModel(cart.getClass());
        if (contents == CartModelManager.emptyModel)
            return;

        ResourceLocation texture = contents.getTexture();
        if (texture == null)
            return;
        renderer.bindTex(texture);

        GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
        if (!contents.cullBackFaces())
            GL11.glDisable(GL11.GL_CULL_FACE);
        GL11.glPushMatrix();
        GL11.glTranslatef(-0.5F, blockOffset / 16.0F - 0.5F, -0.5F);
        contents.render(cart, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
        GL11.glEnable(GL11.GL_CULL_FACE);
        GL11.glPopMatrix();
        GL11.glPopAttrib();
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.client.render.models.ModelTextured

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.