Package appeng.api.me.util

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

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.