Examples of InventoryWrapper


Examples of crazypants.util.InventoryWrapper

    }
    ISidedInventory target;
    if(te instanceof ISidedInventory) {
      target = (ISidedInventory) te;
    } else {
      target = new InventoryWrapper((IInventory) te);
    }

    int[] targetSlots = target.getAccessibleSlotsFromSide(dir.getOpposite().ordinal());
    if(targetSlots == null) {
      return false;
View Full Code Here

Examples of crazypants.util.InventoryWrapper

    TileEntity te = world.getTileEntity(location.x, location.y, location.z);
    if(te instanceof ISidedInventory) {
      inv = (ISidedInventory) te;
    } else if(te instanceof IInventory) {
      inv = new InventoryWrapper((IInventory) te);
    }
  }
View Full Code Here

Examples of net.mcft.copy.betterstorage.inventory.InventoryWrapper

    else if (name.equals(Constants.containerKeyring))
      return new GuiBetterStorage(new ContainerKeyring(player, title, columns));
    else if (name.startsWith(Constants.containerThaumiumChest))
      return new GuiThaumiumChest(player, columns, rows, title, localized);
    else if (name.equals(Constants.containerCardboardBox))
      return new GuiBetterStorage(player, columns, rows, new InventoryWrapper(
          new InventoryCardboardBox(new ItemStack[columns * rows]), title, localized));
    else if (name.equals(Constants.containerCraftingStation))
      return new GuiCraftingStation(player, title, localized);
    else return new GuiBetterStorage(player, columns, rows, title, localized);
   
View Full Code Here

Examples of org.broadleafcommerce.core.web.api.wrapper.InventoryWrapper

        List<Sku> skus = catalogService.findSkusByIds(ids);
        if (CollectionUtils.isNotEmpty(skus)) {
            Map<Sku, Integer> quantities = inventoryService.retrieveQuantitiesAvailable(new HashSet<Sku>(skus));
            List<InventoryWrapper> out = new ArrayList<InventoryWrapper>();
            for (Map.Entry<Sku, Integer> entry : quantities.entrySet()) {
                InventoryWrapper wrapper = (InventoryWrapper)context.getBean(InventoryWrapper.class.getName());
                wrapper.wrapSummary(entry.getKey(), entry.getValue(), request);
                out.add(wrapper);
            }
            return out;
        }
        throw BroadleafWebServicesException.build(Response.Status.NOT_FOUND.getStatusCode())
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.