Package appeng.api.storage.data

Examples of appeng.api.storage.data.IAEItemStack.copy()


      {
        for (int x = 0; x < list.length; x++)
        {
          IAEItemStack part = list[x];
          if ( part != null )
            nodes.put( new CraftingTreeNode( cc, job, part.copy(), this, x, depth + 1 ), part.getStackSize() );
        }
      }
      else
      {
        // this is minorly different then below, this slot uses the pattern, but kinda fudges it.
View Full Code Here


            if ( !exhausted )
            {
              IAEItemStack is = job.checkUse( available );
              if ( is != null )
              {
                thingsUsed.add( is.copy() );
                used.add( is );
              }
            }

            bytes += available.getStackSize();
View Full Code Here

        if ( !exhausted )
        {
          IAEItemStack is = job.checkUse( available );
          if ( is != null )
          {
            thingsUsed.add( is.copy() );
            used.add( is );
          }
        }

        bytes += available.getStackSize();
View Full Code Here

      i.setCountRequestable( howManyEmitted );
      plan.addRequestable( i );
    }

    for (IAEItemStack i : used)
      plan.add( i.copy() );

    for (CraftingTreeProcess pro : nodes)
      pro.getPlan( plan );
  }
}
View Full Code Here

        if ( finalOutput.equals( what ) )
        {
          if ( myLastLink != null )
          {
            leftOver.add( ((CraftingLink) myLastLink).injectItems( used.copy(), type ) );
            return leftOver;
          }

          return what; // ignore it.
        }
View Full Code Here

          updateCPU();

          if ( myLastLink != null )
          {
            what.add( ((CraftingLink) myLastLink).injectItems( insert.copy(), type ) );
            return what;
          }

          if ( myLastLink != null )
            return ((CraftingLink) myLastLink).injectItems( (IAEItemStack) input, type );
View Full Code Here

    case ALL:
      throw new RuntimeException( "Invalid Operation" );
    }

    if ( is != null )
      return is.copy();

    is = what.copy();
    is.setStackSize( 0 );
    return is;
  }
View Full Code Here

    IAEItemStack Results = null;

    IAEItemStack l = getCellItems().findPrecise( request );
    if ( l != null )
    {
      Results = l.copy();

      if ( l.getStackSize() <= size )
      {
        Results.setStackSize( l.getStackSize() );
        if ( mode == Actionable.MODULATE )
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.