Examples of IFluidProvider


Examples of logisticspipes.interfaces.routing.IFluidProvider

    for(ExitRoute r: validDestinations){
      if(r == null) continue;
      if(!r.containsFlag(PipeRoutingConnectionType.canRequestFrom)) continue;
      if (!(r.destination.getPipe() instanceof IFluidProvider)) continue;

      IFluidProvider provider = (IFluidProvider) r.destination.getPipe();
      Map<FluidIdentifier, Integer> allItems = provider.getAvailableFluids();
     
      for (Entry<FluidIdentifier, Integer> liquid : allItems.entrySet()){
        Integer amount = allAvailableItems.get(liquid.getKey());
        if (amount==null){
          allAvailableItems.put(liquid.getKey(), liquid.getValue());
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.