Examples of TaughtIcon


Examples of appeng.client.texture.TaughtIcon

    if ( BlockMolecularAssembler.booleanAlphaPass )
    {
      if ( tma.isPowered() )
      {
        renderBlockBounds( renderer, 1, 1, 1, 15, 15, 15, ForgeDirection.WEST, ForgeDirection.UP, ForgeDirection.SOUTH );
        TaughtIcon lights = new TaughtIcon( ExtraBlockTextures.BlockMolecularAssemblerLights.getIcon(), -2.0f );
        Tessellator.instance.setColorRGBA_F( 1, 1, 1, 0.3f );
        Tessellator.instance.setBrightness( 14 << 20 | 14 << 4 );
        renderer.renderFaceXNeg( blk, x, y, z, lights );
        renderer.renderFaceXPos( blk, x, y, z, lights );
        renderer.renderFaceYNeg( blk, x, y, z, lights );
View Full Code Here

Examples of appeng.client.texture.TaughtIcon

    rh.setFacesToRender( EnumSet.allOf( ForgeDirection.class ) );
    if ( !isGlass )
    {
      setSmartConnectionRotations( of, renderer );

      IIcon firstIcon = new TaughtIcon( getChannelTex( channels, false ).getIcon(), -0.2f );
      IIcon secondIcon = new TaughtIcon( getChannelTex( channels, true ).getIcon(), -0.2f );

      Tessellator.instance.setBrightness( 15 << 20 | 15 << 4 );
      Tessellator.instance.setColorOpaque_I( myColor.blackVariant );
      rh.setTexture( firstIcon, firstIcon, firstIcon, firstIcon, firstIcon, firstIcon );
      renderAllFaces( (AEBaseBlock) rh.getBlock(), x, y, z, rh, renderer );
View Full Code Here

Examples of appeng.client.texture.TaughtIcon

      int channels = channelsOnSide[selectedSide.ordinal()];
      IIcon def = getTexture( getCableColor() );
      IIcon off = new OffsetIcon( def, 0, -12 );

      IIcon firstIcon = new TaughtIcon( getChannelTex( channels, false ).getIcon(), -0.2f );
      IIcon firstOffset = new OffsetIcon( firstIcon, 0, -12 );

      IIcon secondIcon = new TaughtIcon( getChannelTex( channels, true ).getIcon(), -0.2f );
      IIcon secondOffset = new OffsetIcon( secondIcon, 0, -12 );

      switch (selectedSide)
      {
      case DOWN:
View Full Code Here

Examples of appeng.client.texture.TaughtIcon

            continue;
          }
          rh.renderBlock( x, y, z, renderer );

          setSmartConnectionRotations( of, renderer );
          IIcon firstIcon = new TaughtIcon( getChannelTex( channelsOnSide[of.ordinal()], false ).getIcon(), -0.2f );
          IIcon secondIcon = new TaughtIcon( getChannelTex( channelsOnSide[of.ordinal()], true ).getIcon(), -0.2f );

          if ( of == ForgeDirection.EAST || of == ForgeDirection.WEST )
          {
            AEBaseBlock blk = (AEBaseBlock) rh.getBlock();
            FlippableIcon ico = blk.getRendererInstance().getTexture( ForgeDirection.EAST );
            ico.setFlip( false, true );
          }

          Tessellator.instance.setBrightness( 15 << 20 | 15 << 4 );
          Tessellator.instance.setColorOpaque_I( getCableColor().blackVariant );
          rh.setTexture( firstIcon, firstIcon, firstIcon, firstIcon, firstIcon, firstIcon );
          renderAllFaces( (AEBaseBlock) rh.getBlock(), x, y, z, rh, renderer );

          Tessellator.instance.setColorOpaque_I( getCableColor().whiteVariant );
          rh.setTexture( secondIcon, secondIcon, secondIcon, secondIcon, secondIcon, secondIcon );
          renderAllFaces( (AEBaseBlock) rh.getBlock(), x, y, z, rh, renderer );

          renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;

          rh.setTexture( getTexture( getCableColor() ) );
        }
      }
    }

    if ( sides.size() != 2 || !nonLinear( sides ) || hasBuses )
    {
      for (ForgeDirection of : connections)
      {
        renderSmartConnection( x, y, z, rh, renderer, channelsOnSide[of.ordinal()], of );
      }

      rh.setTexture( getCoveredTexture( getCableColor() ) );
      rh.setBounds( 5, 5, 5, 11, 11, 11 );
      rh.renderBlock( x, y, z, renderer );
    }
    else
    {
      ForgeDirection selectedSide = ForgeDirection.UNKNOWN;

      for (ForgeDirection of : connections)
      {
        selectedSide = of;
        break;
      }

      int channels = channelsOnSide[selectedSide.ordinal()];
      IIcon def = getTexture( getCableColor() );
      IIcon off = new OffsetIcon( def, 0, -12 );

      IIcon firstTaughtIcon = new TaughtIcon( getChannelTex( channels, false ).getIcon(), -0.2f );
      IIcon firstOffsetIcon = new OffsetIcon( firstTaughtIcon, 0, -12 );

      IIcon secondTaughtIcon = new TaughtIcon( getChannelTex( channels, true ).getIcon(), -0.2f );
      IIcon secondOffsetIcon = new OffsetIcon( secondTaughtIcon, 0, -12 );

      switch (selectedSide)
      {
      case DOWN:
View Full Code Here

Examples of appeng.client.texture.TaughtIcon

    rh.setFacesToRender( EnumSet.allOf( ForgeDirection.class ) );

    if ( isSmart )
    {
      setSmartConnectionRotations( of, renderer );
      IIcon firstIcon = new TaughtIcon( getChannelTex( channels, false ).getIcon(), -0.2f );
      IIcon secondIcon = new TaughtIcon( getChannelTex( channels, true ).getIcon(), -0.2f );

      if ( of == ForgeDirection.EAST || of == ForgeDirection.WEST )
      {
        AEBaseBlock blk = (AEBaseBlock) rh.getBlock();
        FlippableIcon ico = blk.getRendererInstance().getTexture( ForgeDirection.EAST );
View Full Code Here

Examples of appeng.client.texture.TaughtIcon

        return;
      }
      rh.renderBlock( x, y, z, renderer );

      setSmartConnectionRotations( of, renderer );
      IIcon firstIcon = new TaughtIcon( getChannelTex( channels, false ).getIcon(), -0.2f );
      IIcon secondIcon = new TaughtIcon( getChannelTex( channels, true ).getIcon(), -0.2f );

      if ( of == ForgeDirection.EAST || of == ForgeDirection.WEST )
      {
        AEBaseBlock blk = (AEBaseBlock) rh.getBlock();
        FlippableIcon ico = blk.getRendererInstance().getTexture( ForgeDirection.EAST );
        ico.setFlip( false, true );
      }

      Tessellator.instance.setBrightness( 15 << 20 | 15 << 4 );
      Tessellator.instance.setColorOpaque_I( myColor.blackVariant );
      rh.setTexture( firstIcon, firstIcon, firstIcon, firstIcon, firstIcon, firstIcon );
      renderAllFaces( (AEBaseBlock) rh.getBlock(), x, y, z, rh, renderer );

      Tessellator.instance.setColorOpaque_I( myColor.whiteVariant );
      rh.setTexture( secondIcon, secondIcon, secondIcon, secondIcon, secondIcon, secondIcon );
      renderAllFaces( (AEBaseBlock) rh.getBlock(), x, y, z, rh, renderer );

      renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;

      rh.setTexture( getTexture( getCableColor() ) );
    }

    else if ( ghh != null && partHost != null && ghh.getCableConnectionType( of ) != AECableType.GLASS && partHost.getColor() != AEColor.Transparent
        && partHost.getPart( of.getOpposite() ) == null )
      rh.setTexture( getSmartTexture( myColor = partHost.getColor() ) );
    else
      rh.setTexture( getSmartTexture( getCableColor() ) );

    switch (of)
    {
    case DOWN:
      rh.setBounds( 6, 0, 6, 10, 5, 10 );
      break;
    case EAST:
      rh.setBounds( 11, 6, 6, 16, 10, 10 );
      break;
    case NORTH:
      rh.setBounds( 6, 6, 0, 10, 10, 5 );
      break;
    case SOUTH:
      rh.setBounds( 6, 6, 11, 10, 10, 16 );
      break;
    case UP:
      rh.setBounds( 6, 11, 6, 10, 16, 10 );
      break;
    case WEST:
      rh.setBounds( 0, 6, 6, 5, 10, 10 );
      break;
    default:
      return;
    }

    rh.renderBlock( x, y, z, renderer );
    rh.setFacesToRender( EnumSet.allOf( ForgeDirection.class ) );

    if ( !isGlass )
    {
      setSmartConnectionRotations( of, renderer );

      IIcon firstIcon = new TaughtIcon( getChannelTex( channels, false ).getIcon(), -0.2f );
      IIcon secondIcon = new TaughtIcon( getChannelTex( channels, true ).getIcon(), -0.2f );

      Tessellator.instance.setBrightness( 15 << 20 | 15 << 4 );
      Tessellator.instance.setColorOpaque_I( myColor.blackVariant );
      rh.setTexture( firstIcon, firstIcon, firstIcon, firstIcon, firstIcon, firstIcon );
      renderAllFaces( (AEBaseBlock) rh.getBlock(), x, y, z, rh, renderer );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.