Examples of addItems()


Examples of appeng.api.me.util.IMEInventoryHandler.addItems()

    IAEItemStack notFilled = cellArray.calculateItemAddition(createFluidItemStack(toFill));
    IAEItemStack filled = createFluidItemStack(toFill);
    if (notFilled != null)
      filled = createFluidItemStack(new SpecialFluidStack(notFilled.getItemDamage(), toFill.amount - notFilled.getStackSize()));
    if (doFill)
      cellArray.addItems(filled);

    getGrid().useMEEnergy(filled.getStackSize() == 0 ? 0 : filled.getStackSize() / 4, "FluidInterface");
    return filled.getStackSize();
  }
View Full Code Here

Examples of appeng.util.InventoryAdaptor.addItems()

        SlotCrafting sc = new SlotCrafting( p, real, cOut, 0, 0, 0 );
        sc.onPickupFromSlot( p, is );

        for (int x = 0; x < real.getSizeInventory(); x++)
        {
          ItemStack failed = playerInv.addItems( real.getStackInSlot( x ) );
          if ( failed != null )
            p.dropPlayerItemWithRandomChoice( failed, false );
        }

        inv.addItems( is );
View Full Code Here

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

        if ( hasItemInHand )
        {
          ItemStack inSlot = theSlot.getStackInSlot( 0 );
          if ( inSlot == null )
            player.inventory.setItemStack( interfaceSlot.addItems( player.inventory.getItemStack() ) );
          else
          {
            inSlot = inSlot.copy();
            ItemStack inHand = player.inventory.getItemStack().copy();
View Full Code Here

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

      IAEItemStack extracted = Platform.poweredExtraction( powerSrc, cellInv, out, mySrc );
      EntityPlayer p = getPlayerInv().player;

      if ( extracted != null )
      {
        inv.addItems( extracted.getItemStack() );
        if ( p instanceof EntityPlayerMP )
          updateHeld( (EntityPlayerMP) p );
        detectAndSendChanges();
        return;
      }
View Full Code Here

Examples of ch.inftec.ju.util.XString.addItems()

    public JuEmfUtil build() {
      AssertUtil.assertNotEmpty("PersistenceUnit name must be specified", this.persistenceUnitName);
     
      // Build a unique identifier String to see if we already have this EmfUtil available.
      XString xs = new XString();
      xs.addItems("|", this.persistenceUnitName, this.connectionUrl);
     
      if (!JuEmfUtilBuilder.emfUtils.containsKey(xs)) {
        // Create a new EmfUtil
       
        String dialect = null;
View Full Code Here

Examples of ch.inftec.ju.util.XString.addItems()

    public JuEmfUtil build() {
      AssertUtil.assertNotEmpty("PersistenceUnit name must be specified", this.persistenceUnitName);
     
      // Build a unique identifier String to see if we already have this EmfUtil available.
      XString xs = new XString();
      xs.addItems("|", this.persistenceUnitName, this.connectionUrl);
     
      if (!JuEmfUtilBuilder.emfUtils.containsKey(xs)) {
        // Create a new EmfUtil
       
        String dialect = null;
View Full Code Here

Examples of com.dianping.cat.report.page.PieChart.addItems()

      if (name.endsWith(":get") || name.endsWith(":mGet")) {
        items.add(new Item().setTitle(name).setNumber(cacheItem.getName().getTotalCount()));
      }
    }
    chart.addItems(items);
    return chart.getJsonString();
  }

  private void calculateEventTps(Payload payload, EventReport report) {
    try {
View Full Code Here

Examples of com.dianping.cat.report.page.PieChart.addItems()

      info.setId(pair.getKey()).setTitle(item.getTitle()).setRequestSum(item.getNumber());
      infos.add(info);
      items.add(item);
    }
    pieChart.setTitle(field.getName() + "访问情况");
    pieChart.addItems(items);
    updatePieChartDetailInfo(infos);

    return new Pair<PieChart, List<PieChartDetailInfo>>(pieChart, infos);
  }
View Full Code Here

Examples of com.dianping.cat.report.page.PieChart.addItems()

      TransactionName transaction = name.getDetail();
      item.setNumber(transaction.getTotalCount()).setTitle(transaction.getId());
      items.add(item);
    }

    chart.addItems(items);
    model.setPieChart(new JsonBuilder().toJson(chart));
  }

  private void calculateTps(Payload payload, TransactionReport report) {
    try {
View Full Code Here

Examples of com.dianping.cat.report.page.PieChart.addItems()

        item.setNumber(tmp.getCount());
        item.setTitle(tmp.getId());
        items.add(item);
      }
      chart.setTitle(entry.getKey());
      chart.addItems(items);
      charts.add(chart);
    }
    return charts;
  }
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.