Package appeng.tile.storage

Examples of appeng.tile.storage.TileSkyChest


  }

  @Override
  public Iterable<AxisAlignedBB> getSelectedBoundingBoxesFromPool(World w, int x, int y, int z, Entity e, boolean isVisual)
  {
    TileSkyChest sk = getTileEntity( w, x, y, z );
    double sc = 0.06;
    ForgeDirection o = ForgeDirection.UNKNOWN;

    if ( sk != null )
      o = sk.getUp();

    double X = o.offsetX == 0 ? 0.06 : 0.0;
    double Y = o.offsetY == 0 ? 0.06 : 0.0;
    double Z = o.offsetZ == 0 ? 0.06 : 0.0;
View Full Code Here


  public void renderTile(AEBaseBlock block, AEBaseTile tile, Tessellator tess, double x, double y, double z, float partialTick, RenderBlocks renderer)
  {
    if ( !(tile instanceof TileSkyChest) )
      return;

    TileSkyChest skyChest = (TileSkyChest) tile;

    if ( !skyChest.hasWorldObj() )
      return;

    GL11.glEnable( 32826 /* GL_RESCALE_NORMAL_EXT */);
    GL11.glColor4f( 1.0F, 1.0F, 1.0F, 1.0F );

    ResourceLocation loc;

    if ( tile.getWorldObj().getBlockMetadata( tile.xCoord, tile.yCoord, tile.zCoord ) == 1 )
      loc = new ResourceLocation( "appliedenergistics2", "textures/models/skyblockchest.png" );
    else
      loc = new ResourceLocation( "appliedenergistics2", "textures/models/skychest.png" );

    Minecraft.getMinecraft().getTextureManager().bindTexture( loc );

    this.applyTESRRotation( x, y, z, skyChest.getForward(), skyChest.getUp() );

    GL11.glScalef( 1.0F, -1F, -1F );
    GL11.glTranslatef( -0.0F, -1.0F, -1.0F );

    long now = System.currentTimeMillis();
View Full Code Here

TOP

Related Classes of appeng.tile.storage.TileSkyChest

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.