Examples of simulateRemove()


Examples of appeng.util.InventoryAdaptor.simulateRemove()

        toStore.setStackSize( -toStore.getStackSize() );

        long diff = toStore.getStackSize();

        // make sure strange things didn't happen...
        ItemStack canExtract = adaptor.simulateRemove( (int) diff, toStore.getItemStack(), null );
        if ( canExtract == null || canExtract.stackSize != diff )
        {
          changed = true;
          throw new GridAccessException();
        }
View Full Code Here

Examples of appeng.util.InventoryAdaptor.simulateRemove()

        TileEntity te = w.getTileEntity( tile.xCoord + s.offsetX, tile.yCoord + s.offsetY, tile.zCoord + s.offsetZ );

        InventoryAdaptor ad = InventoryAdaptor.getAdaptor( te, s.getOpposite() );
        if ( ad != null )
        {
          if ( ad.simulateRemove( 1, null, null ) == null )
          {
            allAreBusy = false;
            break;
          }
        }
View Full Code Here

Examples of appeng.util.InventoryAdaptor.simulateRemove()

      InventoryAdaptor ad = InventoryAdaptor.getAdaptor( te, s.getOpposite() );
      if ( ad != null )
      {
        if ( isBlocking() )
        {
          if ( ad.simulateRemove( 1, null, null ) != null )
            continue;
        }

        if ( acceptsItems( ad, table ) )
        {
View Full Code Here

Examples of appeng.util.InventoryAdaptor.simulateRemove()

            default:
            }

            if ( toAdd != null )
            {
              if ( ap.simulateRemove( 1, toAdd, null ) == null )
                ap.addItems( toAdd );
              else
                duplicate = true;
            }
          }
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.