Package appeng.api.parts

Examples of appeng.api.parts.IFacadePart


  {
    if ( side == null || side == ForgeDirection.UNKNOWN )
      return false;

    // facades are solid..
    IFacadePart fp = getFacadeContainer().getFacade( side );
    if ( fp != null )
      return true;

    // buses can be too.
    IPart part = getPart( side );
View Full Code Here


        part.getDrops( drops, false );
      }

      if ( s != ForgeDirection.UNKNOWN )
      {
        IFacadePart fp = getFacadeContainer().getFacade( s );
        if ( fp != null )
          drops.add( fp.getItemStack() );
      }
    }

    return drops;
  }
View Full Code Here

    if ( AEApi.instance().partHelper().getCableRenderMode().opaqueFacades )
    {
      IFacadeContainer fc = getFacadeContainer();
      for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
      {
        IFacadePart p = fc.getFacade( side );
        if ( p != null )
        {
          List<AxisAlignedBB> boxes = new LinkedList<AxisAlignedBB>();

          IPartCollisionHelper bch = new BusCollisionHelper( boxes, side, null, true );
          p.getBoxes( bch, null );
          for (AxisAlignedBB bb : boxes)
          {
            bb = bb.expand( 0.01, 0.01, 0.01 );
            if ( bb.isVecInside( pos ) )
            {
View Full Code Here

      List<ItemStack> facades = new LinkedList<ItemStack>();

      IFacadeContainer fc = getFacadeContainer();
      for (ForgeDirection d : ForgeDirection.VALID_DIRECTIONS)
      {
        IFacadePart fp = fc.getFacade( d );
        if ( fp != null )
        {
          facades.add( fp.getItemStack() );
          fc.removeFacade( tcb, d );
        }
      }

      if ( !facades.isEmpty() )
View Full Code Here

TOP

Related Classes of appeng.api.parts.IFacadePart

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.