Package powercrystals.minefactoryreloaded.tile.rednet

Examples of powercrystals.minefactoryreloaded.tile.rednet.TileEntityRedNetHistorian


 
  @Override
  public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float partialTicks)
  {
    RenderEngine renderengine = Minecraft.getMinecraft().renderEngine;
    TileEntityRedNetHistorian historian = (TileEntityRedNetHistorian)tileentity;
   
    if(renderengine != null)
    {
      renderengine.bindTexture(MineFactoryReloadedCore.tileEntityFolder + "historian.png");
    }
   
    GL11.glPushMatrix();

    GL11.glTranslatef((float)x, (float)y, (float)z);
   
    if(historian.getDirectionFacing() == ForgeDirection.EAST)
    {
      GL11.glTranslatef(1, 0, 0);
      GL11.glRotatef(270, 0, 1, 0);
    }
    else if(historian.getDirectionFacing() == ForgeDirection.SOUTH)
    {
      GL11.glTranslatef(1, 0, 1);
      GL11.glRotatef(180, 0, 1, 0);
    }
    else if(historian.getDirectionFacing() == ForgeDirection.WEST)
    {
      GL11.glTranslatef(0, 0, 1);
      GL11.glRotatef(90, 0, 1, 0);
   
   
    _model.render((TileEntityRedNetHistorian)tileentity);
   
    GL11.glPushAttrib(GL11.GL_LIGHTING_BIT);
    RenderHelper.disableStandardItemLighting();
    OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240.0F, 240.0F);
   
    GL11.glDisable(GL11.GL_TEXTURE_2D);
   
    Tessellator t = Tessellator.instance;
    t.startDrawing(GL11.GL_LINES);
    GL11.glLineWidth(2.0F);
   
    Integer[] values = historian.getValues();
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
   
    int yMin = Integer.MAX_VALUE;
    int yMax = Integer.MIN_VALUE;
   
View Full Code Here


  }
 
  @Override
  public TileEntity createTileEntity(World world, int metadata)
  {
    return new TileEntityRedNetHistorian();
  }
View Full Code Here

TOP

Related Classes of powercrystals.minefactoryreloaded.tile.rednet.TileEntityRedNetHistorian

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.