Package appeng.api.util

Examples of appeng.api.util.AEColoredItemDefinition


    if ( tqb.getBlockType() == AEApi.instance().blocks().blockQuantumLink.block() )
    {
      if ( tqb.isFormed() )
      {
        AEColoredItemDefinition glassCableDefinition = AEApi.instance().parts().partCableGlass;
        Item transparentGlassCable = glassCableDefinition.item( AEColor.Transparent );

        AEColoredItemDefinition coveredCableDefinition = AEApi.instance().parts().partCableCovered;
        Item transparentCoveredCable = coveredCableDefinition.item( AEColor.Transparent );

        EnumSet<ForgeDirection> sides = tqb.getConnections();
        renderCableAt( 0.11D, world, x, y, z, block, renderer, transparentGlassCable.getIconIndex( glassCableDefinition.stack( AEColor.Transparent, 1 ) ), 0.141D, sides );
        renderCableAt( 0.188D, world, x, y, z, block, renderer, transparentCoveredCable.getIconIndex( coveredCableDefinition.stack( AEColor.Transparent, 1 ) ), 0.1875D, sides );
      }

      float renderMin = 2.0f / 16.0f;
      float renderMax = 14.0f / 16.0f;
      renderer.setRenderBounds( renderMin, renderMin, renderMin, renderMax, renderMax, renderMax );
      renderer.renderStandardBlock( block, x, y, z );
      // super.renderWorldBlock(world, x, y, z, block, modelId, renderer);
    }
    else
    {
      if ( !tqb.isFormed() )
      {
        float renderMin = 2.0f / 16.0f;
        float renderMax = 14.0f / 16.0f;
        renderer.setRenderBounds( renderMin, renderMin, renderMin, renderMax, renderMax, renderMax );
        renderer.renderStandardBlock( block, x, y, z );
      }
      else if ( tqb.isCorner() )
      {
        // renderCableAt(0.11D, world, x, y, z, block, modelId,
        // renderer,
        // AppEngTextureRegistry.Blocks.MECable.get(), true, 0.0D);
        AEColoredItemDefinition coveredCableDefinition = AEApi.instance().parts().partCableCovered;
        Item transparentCoveredCable = coveredCableDefinition.item( AEColor.Transparent );

        renderCableAt( 0.188D, world, x, y, z, block, renderer, transparentCoveredCable.getIconIndex( coveredCableDefinition.stack( AEColor.Transparent, 1 ) ), 0.05D,
            tqb.getConnections() );

        float renderMin = 4.0f / 16.0f;
        float renderMax = 12.0f / 16.0f;
View Full Code Here

TOP

Related Classes of appeng.api.util.AEColoredItemDefinition

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.