Package appeng.tile.grindstone

Examples of appeng.tile.grindstone.TileCrank


  }

  @Override
  public void renderTile(AEBaseBlock blk, AEBaseTile tile, Tessellator tess, double x, double y, double z, float f, RenderBlocks renderBlocks)
  {
    TileCrank tc = (TileCrank) tile;
    if ( tc.getUp() == null || tc.getUp() == ForgeDirection.UNKNOWN )
      return;

    Minecraft.getMinecraft().getTextureManager().bindTexture( TextureMap.locationBlocksTexture );
    RenderHelper.disableStandardItemLighting();

    if ( Minecraft.isAmbientOcclusionEnabled() )
      GL11.glShadeModel( GL11.GL_SMOOTH );
    else
      GL11.glShadeModel( GL11.GL_FLAT );

    GL11.glColor4f( 1.0f, 1.0f, 1.0f, 1.0f );

    applyTESRRotation( x, y, z, tile.getForward(), tile.getUp() );

    GL11.glTranslated( 0.5, 0, 0.5 );
    GL11.glRotatef( tc.visibleRotation, 0, 1, 0 );
    GL11.glTranslated( -0.5, 0, -0.5 );

    tess.setTranslation( -tc.xCoord, -tc.yCoord, -tc.zCoord );
    tess.startDrawingQuads();
    renderBlocks.renderAllFaces = true;
    renderBlocks.blockAccess = tc.getWorldObj();

    renderBlocks.setRenderBounds( 0.5D - 0.05, 0.5D - 0.5, 0.5D - 0.05, 0.5D + 0.05, 0.5D + 0.1, 0.5D + 0.05 );

    renderBlocks.renderStandardBlock( blk, tc.xCoord, tc.yCoord, tc.zCoord );
View Full Code Here

TOP

Related Classes of appeng.tile.grindstone.TileCrank

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.