Examples of GlassPaneConnected


Examples of tconstruct.smeltery.blocks.GlassPaneConnected

    public boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer)
    {
        boolean temp = renderer.renderAllFaces;
        renderer.renderAllFaces = true;

        GlassPaneConnected pane = (GlassPaneConnected) block;

        boolean flag = pane.canPaneConnectTo(world, x, y, z, EAST);
        boolean flag1 = pane.canPaneConnectTo(world, x, y, z, WEST);
        boolean flag2 = pane.canPaneConnectTo(world, x, y, z, SOUTH);
        boolean flag3 = pane.canPaneConnectTo(world, x, y, z, NORTH);

        IIcon sideTexture = pane.getSideTextureIndex();

        if (!flag && !flag1 && !flag2 && !flag3)
        {
            renderer.setRenderBounds(0D, 0D, 0.45D, 1D, 1D, 0.55D);
            renderer.renderStandardBlock(block, x, y, z);
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.