Package mekanism.common

Examples of mekanism.common.ISustainedInventory


    ItemStack itemStack = new ItemStack(Mekanism.GasTank);

    IGasItem storageTank = (IGasItem)itemStack.getItem();
    storageTank.setGas(itemStack, tileEntity.gasTank.getGas());

    ISustainedInventory inventory = (ISustainedInventory)itemStack.getItem();
    inventory.setInventory(((ISustainedInventory)tileEntity).getInventory(), itemStack);

    return itemStack;
  }
View Full Code Here


    }

    IEnergizedItem electricItem = (IEnergizedItem)itemStack.getItem();
    electricItem.setEnergy(itemStack, tileEntity.electricityStored);

    ISustainedInventory inventory = (ISustainedInventory)itemStack.getItem();
    inventory.setInventory(tileEntity.getInventory(), itemStack);
   
    if(tileEntity instanceof ISustainedData)
    {
      ((ISustainedData)tileEntity).writeSustainedData(itemStack);
    }
View Full Code Here

      energizedItem.setEnergy(itemStack, ((TileEntityElectricBlock)tileEntity).electricityStored);
    }

    if(tileEntity instanceof TileEntityContainerBlock && ((TileEntityContainerBlock)tileEntity).inventory.length > 0)
    {
      ISustainedInventory inventory = (ISustainedInventory)itemStack.getItem();
      inventory.setInventory(((ISustainedInventory)tileEntity).getInventory(), itemStack);
    }

    if(((ISustainedTank)itemStack.getItem()).hasTank(itemStack))
    {
      if(tileEntity instanceof ISustainedTank)
View Full Code Here

    energyCube.setEnergyCubeTier(itemStack, tileEntity.tier);

    IEnergizedItem energizedItem = (IEnergizedItem)itemStack.getItem();
    energizedItem.setEnergy(itemStack, tileEntity.electricityStored);

    ISustainedInventory inventory = (ISustainedInventory)itemStack.getItem();
    inventory.setInventory(((ISustainedInventory)tileEntity).getInventory(), itemStack);

    return itemStack;
  }
View Full Code Here

TOP

Related Classes of mekanism.common.ISustainedInventory

Copyright © 2018 www.massapicom. 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.