Package buildcraft.api.robots

Examples of buildcraft.api.robots.StackRequest


    } else if (isFulfilled(i)) {
      return null;
    } else if (RobotRegistry.getRegistry(worldObj).isTaken(new ResourceIdRequest(this, i))) {
      return null;
    } else {
      StackRequest r = new StackRequest();

      r.index = i;
      r.stack = requests.getStackInSlot(i);
      r.requester = this;
View Full Code Here


      if (qty <= 0) {
        return null;
      }

      StackRequest request = new StackRequest();

      request.index = i;
      request.requester = this;
      request.stack = requirement;
View Full Code Here

      if (nearbyTile instanceof IRequestProvider) {
        IRequestProvider provider = (IRequestProvider) nearbyTile;

        for (int i = 0; i < provider.getNumberOfRequests(); ++i) {
          StackRequest requestFound = provider.getAvailableRequest(i);

          if (requestFound != null
              && !isBlacklisted(requestFound.stack)
              && filter.matches(requestFound.stack)) {
            requestFound.station = station;
View Full Code Here

      if (s.statement instanceof ActionStationRequestItems) {
        for (IStatementParameter p : s.parameters) {
          StatementParameterItemStack param = (StatementParameterItemStack) p;

          if (param != null && !isBlacklisted(param.getItemStack())) {
            StackRequest req = new StackRequest();
            req.station = station;
            req.stack = param.getItemStack();

            return req;
          }
View Full Code Here

TOP

Related Classes of buildcraft.api.robots.StackRequest

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.