Examples of injectItems()


Examples of appeng.api.storage.IMEInventoryHandler.injectItems()

      try
      {
        IMEInventoryHandler h = getHandler( StorageChannel.FLUIDS );

        extractAEPower( req, Actionable.MODULATE, PowerMultiplier.CONFIG );
        IAEStack results = h.injectItems( AEFluidStack.create( resource ), doFill ? Actionable.MODULATE : Actionable.SIMULATE, mySrc );

        if ( results == null )
          return resource.amount;

        return resource.amount - (int) results.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.