Package erogenousbeef.bigreactors.common.multiblock.helpers

Examples of erogenousbeef.bigreactors.common.multiblock.helpers.CoolantContainer.drain()


  public FluidStack drain(ForgeDirection from, FluidStack resource,
      boolean doDrain) {
    if(!isConnected() || from != getOutwardsDir()) { return null; }

    CoolantContainer cc = getReactorController().getCoolantContainer();
    return cc.drain(getConnectedTank(), resource, doDrain);
  }

  @Override
  public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain) {
    if(!isConnected() || from != getOutwardsDir()) { return null; }
View Full Code Here


  @Override
  public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain) {
    if(!isConnected() || from != getOutwardsDir()) { return null; }
    CoolantContainer cc = getReactorController().getCoolantContainer();
    return cc.drain(getConnectedTank(), maxDrain, doDrain);
  }

  @Override
  public boolean canFill(ForgeDirection from, Fluid fluid) {
    if(!isConnected() || from != getOutwardsDir()) { return false; }
View Full Code Here

    // Try to pump steam out, if an outlet
    if(pumpDestination == null || isInlet())
      return;

    CoolantContainer cc = getReactorController().getCoolantContainer();
    FluidStack fluidToDrain = cc.drain(CoolantContainer.HOT, cc.getCapacity(), false);
   
    if(fluidToDrain != null && fluidToDrain.amount > 0)
    {
      fluidToDrain.amount = pumpDestination.fill(getOutwardsDir().getOpposite(), fluidToDrain, true);
      cc.drain(CoolantContainer.HOT, fluidToDrain, true);
View Full Code Here

    FluidStack fluidToDrain = cc.drain(CoolantContainer.HOT, cc.getCapacity(), false);
   
    if(fluidToDrain != null && fluidToDrain.amount > 0)
    {
      fluidToDrain.amount = pumpDestination.fill(getOutwardsDir().getOpposite(), fluidToDrain, true);
      cc.drain(CoolantContainer.HOT, fluidToDrain, true);
    }
  }

  // INeighborUpdatableEntity
  @Override
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.