Examples of removeItems()


Examples of appeng.util.InventoryAdaptor.removeItems()

          if ( extra != null )
            playerHand.addItems( extra );
        }
        else if ( is != null )
        {
          ItemStack extra = interfaceSlot.removeItems( (is.stackSize + 1) / 2, null, null );
          if ( extra != null )
            extra = playerHand.addItems( extra );
          if ( extra != null )
            interfaceSlot.addItems( extra );
        }
View Full Code Here

Examples of appeng.util.InventoryAdaptor.removeItems()

        ais = Platform.poweredInsert( powerSrc, cellInv, ais, mySrc );
        if ( ais == null )
        {
          InventoryAdaptor ia = new AdaptorPlayerHand( player );

          ItemStack fail = ia.removeItems( 1, extracted.getItemStack(), null );
          if ( fail == null )
            cellInv.extractItems( extracted, Actionable.MODULATE, mySrc );

          updateHeld( player );
        }
View Full Code Here

Examples of appeng.util.InventoryAdaptor.removeItems()

        if ( diff != 0 )
        {
          // extract items!
          changed = true;
          ItemStack removed = adaptor.removeItems( (int) diff, null, null );
          if ( removed == null )
            throw new RuntimeException( "bad attempt at managing inventory. ( removeItems )" );
          else if ( removed.stackSize != diff )
            throw new RuntimeException( "bad attempt at managing inventory. ( removeItems )" );
        }
View Full Code Here

Examples of appeng.util.inv.AdaptorIInventory.removeItems()

          if ( extra != null )
            playerHand.addItems( extra );
        }
        else if ( is != null )
        {
          ItemStack extra = interfaceSlot.removeItems( (is.stackSize + 1) / 2, null, null );
          if ( extra != null )
            extra = playerHand.addItems( extra );
          if ( extra != null )
            interfaceSlot.addItems( extra );
        }
View Full Code Here

Examples of appeng.util.inv.AdaptorPlayerHand.removeItems()

        break;
      case SPLIT_OR_PLACE_SINGLE:

        if ( hasItemInHand )
        {
          ItemStack extra = playerHand.removeItems( 1, null, null );
          if ( extra != null )
            extra = interfaceSlot.addItems( extra );
          if ( extra != null )
            playerHand.addItems( extra );
        }
View Full Code Here

Examples of appeng.util.inv.AdaptorPlayerHand.removeItems()

        ais = Platform.poweredInsert( powerSrc, cellInv, ais, mySrc );
        if ( ais == null )
        {
          InventoryAdaptor ia = new AdaptorPlayerHand( player );

          ItemStack fail = ia.removeItems( 1, extracted.getItemStack(), null );
          if ( fail == null )
            cellInv.extractItems( extracted, Actionable.MODULATE, mySrc );

          updateHeld( player );
        }
View Full Code Here

Examples of bufferings.ktr.wjr.client.ui.widget.WjrTree.removeItems()

    updateTracePanel(null);
    updateResultPanel(store);

    WjrTree tree = treePanel.getTree();
    tree.removeItems();

    List<WjrClassItem> classStoreItems = store.getClassItems();
    for (WjrClassItem classStoreItem : classStoreItems) {
      WjrTreeItem classTreeItem = createTreeItem(classStoreItem);
      storeItems.add(classStoreItem);
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

    public void onOpen(OpenEvent<TreeItem> event) {
        final TreeItem node = event.getTarget();
        if ( ExplorerNodeConfig.TEST_SCENARIOS_ROOT_ID.equals( itemWidgets.get( node ) ) ) {
            RepositoryServiceFactory.getPackageService().listPackages( new GenericCallback<PackageConfigData[]>() {
                public void onSuccess(PackageConfigData[] conf) {
                    node.removeItems();
                    removeTestScenarioIDs( itemWidgets );

                    for (int i = 0; i < conf.length; i++) {
                        final PackageConfigData c = conf[i];
                        TreeItem pkg = new TreeItem( Util.getHeader( images.packages(),
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

            RepositoryServiceFactory.getPackageService().listSnapshots(
                    packageConfigData.name,
                    new GenericCallback<SnapshotInfo[]>() {
                        public void onSuccess(SnapshotInfo[] snaps) {
                            node.removeItems();
                            for (final SnapshotInfo snapInfo : snaps) {
                                TreeItem snap = new TreeItem( snapInfo.getName() );
                                snap.setUserObject( new SnapshotPlace( packageConfigData.name, snapInfo.getName() ) );
                                node.addItem( snap );
                            }
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

    private void loadTree() {
        if (tree == null) return;
        tree.clear();
        TreeItem root = tree.addItem(
                new Hyperlink("Albums", getLocation(null)));
        root.removeItems();
        addTreeItems(root, roots);
        root.setState(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.