Package mods.railcraft.common.blocks.aesthetics.cube

Examples of mods.railcraft.common.blocks.aesthetics.cube.BlockCube


    public static void renderBlockForEntity(RenderInfo info, IBlockAccess blockAccess, int i, int j, int k, boolean doLight, boolean doTessellating) {
        renderBlock(info, blockAccess, -0.5, -0.5, -0.5, i, j, k, doLight, doTessellating);
    }

    public static void renderAsBlock(RenderInfo info, RenderBlocks renderBlocks, IBlockAccess blockAccess, double x, double y, double z) {
        BlockCube block = BlockCube.getBlock();
        if (block != null) {
            block.setTextureOveride(info);
            renderBlocks.setRenderBounds(info.minX, info.minY, info.minZ, info.maxX, info.maxY, info.maxZ);
            renderBlocks.renderStandardBlock(block, (int) x, (int) y, (int) z);
            block.setTextureOveride(null);
        } else
            renderBlock(info, blockAccess, x, y, z, true, false);
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.blocks.aesthetics.cube.BlockCube

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.