Examples of OffsetIcon


Examples of appeng.client.texture.OffsetIcon

    int v = offsets[9 - cx][9 - cy][9 - cz] % 4;

    switch (Math.abs( (offsets[cx][cy][cz] + (x + y + z)) % 4 ))
    {
    case 0:
      renderer.overrideBlockTexture = new OffsetIcon( imb.getIcon( 0, 0 ), u / 2, v / 2 );
      break;
    case 1:
      renderer.overrideBlockTexture = new OffsetIcon( ExtraBlockTextures.BlockQuartzGlassB.getIcon(), u / 2, v / 2 );
      break;
    case 2:
      renderer.overrideBlockTexture = new OffsetIcon( ExtraBlockTextures.BlockQuartzGlassC.getIcon(), u, v );
      break;
    case 3:
      renderer.overrideBlockTexture = new OffsetIcon( ExtraBlockTextures.BlockQuartzGlassD.getIcon(), u, v );
      break;
    }

    boolean result = renderer.renderStandardBlock( imb, x, y, z );
View Full Code Here

Examples of appeng.client.texture.OffsetIcon

  }

  private void renderTorchAtAngle(RenderBlocks renderer, ForgeDirection x, ForgeDirection y, ForgeDirection z)
  {
    IIcon r = (hasChan ? CableBusTextures.BlockWirelessOn.getIcon() : blk.getIcon( 0, 0 ));
    IIcon sides = new OffsetIcon( r, 0.0f, -2.0f );

    switch (z)
    {
    case DOWN:
      renderer.uvRotateNorth = 3;
View Full Code Here

Examples of appeng.client.texture.OffsetIcon

    int b = world.getLightBrightnessForSkyBlocks( x + forward.offsetX, y + forward.offsetY, z + forward.offsetZ, 0 );
    Tessellator.instance.setBrightness( b );
    Tessellator.instance.setColorOpaque_I( 0xffffff );

    FlippableIcon flippableIcon = new FlippableIcon( new OffsetIcon( ExtraBlockTextures.MEStorageCellTextures.getIcon(), offsetU, offsetV ) );
    if ( forward == ForgeDirection.EAST && (up == ForgeDirection.NORTH || up == ForgeDirection.SOUTH) )
      flippableIcon.setFlip( true, false );
    else if ( forward == ForgeDirection.NORTH && up == ForgeDirection.EAST )
      flippableIcon.setFlip( false, true );
    else if ( forward == ForgeDirection.NORTH && up == ForgeDirection.WEST )
View Full Code Here

Examples of appeng.client.texture.OffsetIcon

    rh.setBounds( 4.0f, 4.0f, 2.0f, 12.0f, 12.0f, 14.0f );

    float offU = 0;
    float offV = 9;

    OffsetIcon main = new OffsetIcon( getTexture( getCableColor() ), offU, offV );
    OffsetIcon ch1 = new OffsetIcon( getChannelTex( 4, false ).getIcon(), offU, offV );
    OffsetIcon ch2 = new OffsetIcon( getChannelTex( 4, true ).getIcon(), offU, offV );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.UP, ForgeDirection.DOWN ))
    {
      rh.renderInventoryFace( main, side, renderer );
      rh.renderInventoryFace( ch1, side, renderer );
      rh.renderInventoryFace( ch2, side, renderer );
    }

    offU = 9;
    offV = 0;
    main = new OffsetIcon( getTexture( getCableColor() ), offU, offV );
    ch1 = new OffsetIcon( getChannelTex( 4, false ).getIcon(), offU, offV );
    ch2 = new OffsetIcon( getChannelTex( 4, true ).getIcon(), offU, offV );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.EAST, ForgeDirection.WEST ))
    {
      rh.renderInventoryFace( main, side, renderer );
      rh.renderInventoryFace( ch1, side, renderer );
      rh.renderInventoryFace( ch2, side, renderer );
    }

    main = new OffsetIcon( getTexture( getCableColor() ), 0, 0 );
    ch1 = new OffsetIcon( getChannelTex( 4, false ).getIcon(), 0, 0 );
    ch2 = new OffsetIcon( getChannelTex( 4, true ).getIcon(), 0, 0 );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.SOUTH, ForgeDirection.NORTH ))
    {
      rh.renderInventoryFace( main, side, renderer );
      rh.renderInventoryFace( ch1, side, renderer );
View Full Code Here

Examples of appeng.client.texture.OffsetIcon

        break;
      }

      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:
      case UP:
View Full Code Here

Examples of appeng.client.texture.OffsetIcon

    rh.setBounds( 5.0f, 5.0f, 2.0f, 11.0f, 11.0f, 14.0f );
    float offU = 0;
    float offV = 9;

    OffsetIcon main = new OffsetIcon( getTexture( getCableColor() ), offU, offV );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.UP, ForgeDirection.DOWN ))
    {
      rh.renderInventoryFace( main, side, renderer );
    }

    offU = 9;
    offV = 0;
    main = new OffsetIcon( getTexture( getCableColor() ), offU, offV );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.EAST, ForgeDirection.WEST ))
    {
      rh.renderInventoryFace( main, side, renderer );
    }

    main = new OffsetIcon( getTexture( getCableColor() ), 0, 0 );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.SOUTH, ForgeDirection.NORTH ))
    {
      rh.renderInventoryFace( main, side, renderer );
    }
View Full Code Here

Examples of appeng.client.texture.OffsetIcon

      rh.renderBlock( x, y, z, renderer );
    }
    else
    {
      IIcon def = getTexture( getCableColor() );
      IIcon off = new OffsetIcon( def, 0, -12 );
      for (ForgeDirection of : connections)
      {
        switch (of)
        {
        case DOWN:
View Full Code Here

Examples of appeng.client.texture.OffsetIcon

    GL11.glTranslated( -0.0, -0.0, 0.3 );

    float offU = 0;
    float offV = 9;

    OffsetIcon main = new OffsetIcon( getTexture( getCableColor() ), offU, offV );
    OffsetIcon ch1 = new OffsetIcon( getChannelTex( 4, false ).getIcon(), offU, offV );
    OffsetIcon ch2 = new OffsetIcon( getChannelTex( 4, true ).getIcon(), offU, offV );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.UP, ForgeDirection.DOWN ))
    {
      rh.setBounds( 5.0f, 5.0f, 2.0f, 11.0f, 11.0f, 14.0f );
      rh.renderInventoryFace( main, side, renderer );
      rh.renderInventoryFace( ch1, side, renderer );
      rh.renderInventoryFace( ch2, side, renderer );
    }

    offU = 9;
    offV = 0;
    main = new OffsetIcon( getTexture( getCableColor() ), offU, offV );
    ch1 = new OffsetIcon( getChannelTex( 4, false ).getIcon(), offU, offV );
    ch2 = new OffsetIcon( getChannelTex( 4, true ).getIcon(), offU, offV );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.EAST, ForgeDirection.WEST ))
    {
      rh.setBounds( 5.0f, 5.0f, 2.0f, 11.0f, 11.0f, 14.0f );
      rh.renderInventoryFace( main, side, renderer );
      rh.renderInventoryFace( ch1, side, renderer );
      rh.renderInventoryFace( ch2, side, renderer );
    }

    main = new OffsetIcon( getTexture( getCableColor() ), 0, 0 );
    ch1 = new OffsetIcon( getChannelTex( 4, false ).getIcon(), 0, 0 );
    ch2 = new OffsetIcon( getChannelTex( 4, true ).getIcon(), 0, 0 );

    for (ForgeDirection side : EnumSet.of( ForgeDirection.SOUTH, ForgeDirection.NORTH ))
    {
      rh.setBounds( 5.0f, 5.0f, 2.0f, 11.0f, 11.0f, 14.0f );
      rh.renderInventoryFace( main, side, renderer );
View Full Code Here

Examples of appeng.client.texture.OffsetIcon

        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:
      case UP:
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.