Package appeng.integration.abstraction

Examples of appeng.integration.abstraction.IBC


      IFacadeItem fi = (IFacadeItem) facade.getItem();
      return fi.getTextureItem( facade );
    }
    else if ( AppEng.instance.isIntegrationEnabled( IntegrationType.BC ) )
    {
      IBC bc = (IBC) AppEng.instance.getIntegration( IntegrationType.BC );
      return bc.getTextureForFacade( facade );
    }
    return null;
  }
View Full Code Here


          }

          IIcon myIcon = null;
          if ( isBC() )
          {
            IBC bc = (IBC) AppEng.instance.getIntegration( IntegrationType.BC );
            myIcon = bc.getFacadeTexture();
          }

          if ( myIcon == null )
            myIcon = facade.getIconIndex();
View Full Code Here

        boolean isBC = ids[0] < 0;
        ids[0] = Math.abs( ids[0] );

        if ( isBC && AppEng.instance.isIntegrationEnabled( IntegrationType.BC ) )
        {
          IBC bc = (IBC) AppEng.instance.getIntegration( IntegrationType.BC );
          changed = changed || storage.getFacade( x ) == null;
          storage.setFacade( x, bc.createFacadePart( (Block) Block.blockRegistry.getObjectById( ids[0] ), ids[1], side ) );
        }
        else if ( !isBC )
        {
          ItemFacade ifa = (ItemFacade) AEApi.instance().items().itemFacade.item();
          ItemStack facade = ifa.createFromIDs( ids );
View Full Code Here

            storage.setFacade( x, ((IFacadeItem) i).createPartFromItemStack( is, ForgeDirection.getOrientation( x ) ) );
          else
          {
            if ( AppEng.instance.isIntegrationEnabled( IntegrationType.BC ) )
            {
              IBC bc = (IBC) AppEng.instance.getIntegration( IntegrationType.BC );
              if ( bc.isFacade( is ) )
                storage.setFacade( x, bc.createFacadePart( is, ForgeDirection.getOrientation( x ) ) );
            }
          }
        }
      }
    }
View Full Code Here

    if ( held.getItem() instanceof IFacadeItem )
      return ((IFacadeItem) held.getItem()).createPartFromItemStack( held, side );

    if ( AppEng.instance.isIntegrationEnabled( IntegrationType.BC ) )
    {
      IBC bc = (IBC) AppEng.instance.getIntegration( IntegrationType.BC );
      if ( bc.isFacade( held ) )
        return bc.createFacadePart( held, side );
    }

    return null;
  }
View Full Code Here

      which.add( this );

      if ( AppEng.instance.isIntegrationEnabled( IntegrationType.BC ) )
      {
        IBC buildcraft = (IBC) AppEng.instance.getIntegration( IntegrationType.BC );
        if ( buildcraft != null )
        {
          if ( buildcraft.isPipe( te, side.getOpposite() ) )
          {
            try
            {
              output = new WrapperBCPipe( te, side.getOpposite() );
            }
View Full Code Here

TOP

Related Classes of appeng.integration.abstraction.IBC

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.