Package mods.railcraft.common.carts

Examples of mods.railcraft.common.carts.CartMaintanceBase


    public void render(RenderCart renderer, EntityMinecart cart, float light, float time) {
        super.render(renderer, cart, light, time);
        int blockOffset = cart.getDisplayTileOffset();
        GL11.glPushMatrix();
        GL11.glTranslatef(-0.5F, blockOffset / 16.0F - 0.5F, -0.5F);
        CartMaintanceBase maint = (CartMaintanceBase) cart;
        if (maint.isBlinking()) {
            renderer.bindTex(LAMP_ON_TEX);
            LAMP_ON.render(cart, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
        } else {
            renderer.bindTex(LAMP_OFF_TEX);
            LAMP_OFF.render(cart, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
View Full Code Here

TOP

Related Classes of mods.railcraft.common.carts.CartMaintanceBase

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.