Examples of receiveGas()


Examples of crazypants.enderio.conduit.gas.IGasConduit.receiveGas()

  @Override
  public int receiveGas(ForgeDirection side, GasStack stack) {
    IGasConduit gc = getConduit(IGasConduit.class);
    if(gc != null) {
      return gc.receiveGas(side, stack);
    }
    return 0;
  }

  @Override
View Full Code Here

Examples of mekanism.api.gas.IGasHandler.receiveGas()

      GasOutput output = outputIterator.next();
      if(output != null) {
        IGasHandler cont = getTankContainer(output.location);
        if(cont != null) {
          GasStack offer = tank.getGas().copy();
          int filled = cont.receiveGas(output.dir, offer);
          if(filled > 0) {
            tank.addAmount(-filled);

          }
        }
View Full Code Here

Examples of mekanism.api.gas.IGasHandler.receiveGas()

                                {
                                    int oxygenToSend = (int) Math.floor(totalOxygen / this.oxygenTiles.size());

                                    if (oxygenToSend > 0)
                                    {
                                        remainingUsableOxygen -= gasHandler.receiveGas(direction, (new GasStack((Gas) EnergyConfigHandler.gasOxygen, oxygenToSend)));
                                    }
                                }
                            }
                        }
                    }
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.