Package appeng.tile.misc

Examples of appeng.tile.misc.TilePaint


  }

  @Override
  public boolean renderInWorld(AEBaseBlock imb, IBlockAccess world, int x, int y, int z, RenderBlocks renderer)
  {
    TilePaint tp = imb.getTileEntity( world, x, y, z );
    boolean out = false;
    if ( tp != null )
    {
      // super.renderInWorld( imb, world, x, y, z, renderer );

      IIcon icoSet[] = new IIcon[] { imb.getIcon( 0, 0 ), ExtraBlockTextures.BlockPaint2.getIcon(), ExtraBlockTextures.BlockPaint3.getIcon() };

      Tessellator tess = Tessellator.instance;

      int lumen = 14 << 20 | 14 << 4;
      int brightness = imb.getMixedBrightnessForBlock( world, x, y, z );

      double offsetConstant = 0.001;

      EnumSet<ForgeDirection> validSides = EnumSet.noneOf( ForgeDirection.class );

      for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
      {
        if ( tp.isSideValid( side ) )
          validSides.add( side );
      }

      for (Splotch s : tp.getDots())
      {
        if ( !validSides.contains( s.side ) )
          continue;

        if ( s.lumen )
View Full Code Here


  }

  @Override
  public int getLightValue(IBlockAccess w, int x, int y, int z)
  {
    TilePaint tp = getTileEntity( w, x, y, z );

    if ( tp != null )
    {
      return tp.getLightLevel();
    }

    return 0;
  }
View Full Code Here

  }

  @Override
  public void onNeighborBlockChange(World w, int x, int y, int z, Block junk)
  {
    TilePaint tp = getTileEntity( w, x, y, z );

    if ( tp != null )
      tp.onNeighborBlockChange();
  }
View Full Code Here

TOP

Related Classes of appeng.tile.misc.TilePaint

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.