Examples of ICellInventoryHandler


Examples of appeng.api.storage.ICellInventoryHandler

  {
    IMEInventory<IAEItemStack> inventory = AEApi.instance().registries().cell().getCellInventory( i, null, StorageChannel.ITEMS );

    if ( inventory instanceof ICellInventoryHandler )
    {
      ICellInventoryHandler handler = (ICellInventoryHandler) inventory;
      ICellInventory cellInventory = handler.getCellInv();

      if (cellInventory != null)
      {
        l.add(cellInventory.getUsedBytes() + " " + GuiText.Of.getLocal() + " "
            + cellInventory.getTotalBytes() + " "
            + GuiText.BytesUsed.getLocal());
       
        l.add(cellInventory.getStoredItemTypes() + " " + GuiText.Of.getLocal()
            + " " + cellInventory.getTotalItemTypes() + " "
            + GuiText.Types.getLocal());
       
        if ( handler.isPreformatted() )
        {
          String List = (handler.getIncludeExcludeMode() == IncludeExclude.WHITELIST ? GuiText.Included
                  : GuiText.Excluded ).getLocal();
         
          if ( handler.isFuzzy() )
            l.add( GuiText.Partitioned.getLocal() + " - " + List + " " + GuiText.Fuzzy.getLocal() );
          else
            l.add( GuiText.Partitioned.getLocal() + " - " + List + " " + GuiText.Precise.getLocal()  );
         
        }
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.