Package buildcraft.core.inventory

Examples of buildcraft.core.inventory.TransactorSimple.inject()


      pickTime++;

      if (pickTime > 5) {
        TransactorSimple inventoryInsert = new TransactorSimple(robot);

        target.getEntityItem().stackSize -= inventoryInsert.inject(
            target.getEntityItem(), ForgeDirection.UNKNOWN,
            true);

        if (target.getEntityItem().stackSize <= 0) {
          target.setDead();
View Full Code Here


        } else if (stackFilter != null && !stackFilter.matches(((EntityItem) e).getEntityItem())) {
          continue;
        } else {
          EntityItem item = (EntityItem) e;

          if (inventoryInsert.inject(item.getEntityItem(), ForgeDirection.UNKNOWN, false) > 0) {
            if (target == null) {
              previousDistance = sqrDistance;
              target = item;
            } else {
              if (sqrDistance < previousDistance) {
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.