Package appeng.api.parts

Examples of appeng.api.parts.IPartItem


      return true;
    }

    if ( is.getItem() instanceof IPartItem )
    {
      IPartItem bi = (IPartItem) is.getItem();

      is = is.copy();
      is.stackSize = 1;

      IPart bp = bi.createPartFromItemStack( is );
      if ( !(side == null || side == ForgeDirection.UNKNOWN || tile() == null) )
      {
        List<AxisAlignedBB> boxes = new ArrayList<AxisAlignedBB>();
        IPartCollisionHelper bch = new BusCollisionHelper( boxes, side, null, true );
        bp.getBoxes( bch );
View Full Code Here


    if ( PartPlacement.isFacade( is, side ) != null )
      return true;

    if ( is.getItem() instanceof IPartItem )
    {
      IPartItem bi = (IPartItem) is.getItem();

      is = is.copy();
      is.stackSize = 1;

      IPart bp = bi.createPartFromItemStack( is );
      if ( bp != null )
      {
        if ( bp instanceof IPartCable )
        {
          boolean canPlace = true;
View Full Code Here

  {
    if ( canAddPart( is, side ) )
    {
      if ( is.getItem() instanceof IPartItem )
      {
        IPartItem bi = (IPartItem) is.getItem();

        is = is.copy();
        is.stackSize = 1;

        IPart bp = bi.createPartFromItemStack( is );
        if ( bp instanceof IPartCable )
        {
          boolean canPlace = true;
          for (ForgeDirection d : ForgeDirection.VALID_DIRECTIONS)
            if ( getPart( d ) != null && !getPart( d ).canBePlacedOn( ((IPartCable) bp).supportsBuses() ) )
View Full Code Here

TOP

Related Classes of appeng.api.parts.IPartItem

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.