Package buildcraft.api.robots

Examples of buildcraft.api.robots.IRequestProvider


      TileEntity nearbyTile = robot.worldObj.getTileEntity(station.x() + dir.offsetX, station.y()
          + dir.offsetY, station.z()
          + dir.offsetZ);

      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;

            if (take) {
              if (provider.takeRequest(i, robot)) {
                return requestFound;
              }
            } else {
              return requestFound;
            }
View Full Code Here

TOP

Related Classes of buildcraft.api.robots.IRequestProvider

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.