Examples of ICartContentsTextureProvider


Examples of mods.railcraft.api.carts.ICartContentsTextureProvider

    public void render(RenderCart renderer, EntityMinecart cart, float light, float time) {
        int blockOffset = cart.getDisplayTileOffset();

        if (cart instanceof ICartContentsTextureProvider) {
            ICartContentsTextureProvider texInterface = (ICartContentsTextureProvider) cart;
            renderer.bindTex(TextureMap.locationBlocksTexture);
            for (int side = 0; side < 6; side++) {
                info.texture[side] = texInterface.getBlockTextureOnSide(side);
            }
            GL11.glPushMatrix();
            GL11.glTranslatef(0.0F, (float) blockOffset / 16.0F, 0.0F);
            RenderFakeBlock.renderBlockOnInventory(renderer.renderBlocks(), info, 1);
            GL11.glPopMatrix();
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.