Package appeng.block.misc

Examples of appeng.block.misc.BlockInscriber


  @Override
  public boolean renderInWorld(AEBaseBlock block, IBlockAccess world, int x, int y, int z, RenderBlocks renderer)
  {
    preRenderInWorld( block, world, x, y, z, renderer );

    BlockInscriber blk = (BlockInscriber) block;

    IOrientable te = getOrientable( block, world, x, y, z );

    ForgeDirection fdy = te.getUp();
    ForgeDirection fdz = te.getForward();
    ForgeDirection fdx = Platform.crossProduct( fdz, fdy ).getOpposite();

    renderer.renderAllFaces = true;

    // sides...
    renderBlockBounds( renderer, 3, 1, 0, 13, 15, 3, fdx, fdy, fdz );
    boolean out = renderer.renderStandardBlock( blk, x, y, z );

    renderBlockBounds( renderer, 0, 1, 0, 3, 15, 16, fdx, fdy, fdz );
    out = renderer.renderStandardBlock( blk, x, y, z );

    renderBlockBounds( renderer, 13, 1, 0, 16, 15, 16, fdx, fdy, fdz );
    out = renderer.renderStandardBlock( blk, x, y, z );

    // top bottom..
    renderBlockBounds( renderer, 1, 0, 1, 15, 4, 15, fdx, fdy, fdz );
    out = renderer.renderStandardBlock( blk, x, y, z );

    renderBlockBounds( renderer, 1, 12, 1, 15, 16, 15, fdx, fdy, fdz );
    out = renderer.renderStandardBlock( blk, x, y, z );

    blk.getRendererInstance().setTemporaryRenderIcon( null );

    renderer.renderAllFaces = false;
    blk.getRendererInstance().setTemporaryRenderIcon( null );

    postRenderInWorld( renderer );
    return out;
  }
View Full Code Here

TOP

Related Classes of appeng.block.misc.BlockInscriber

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.