Examples of canDrain()


Examples of crazypants.enderio.conduit.liquid.ILiquidConduit.canDrain()

  @Override
  public boolean canDrain(ForgeDirection from, Fluid fluid) {
    ILiquidConduit lc = getConduit(ILiquidConduit.class);
    if(lc != null) {
      return lc.canDrain(from, fluid);
    }
    return false;
  }

  @Override
View Full Code Here

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

  @Override
  public boolean canDrain(ForgeDirection from, Fluid fluid) {
    if(!isConnected() || from != getOutwardsDir()) { return false; }
    CoolantContainer cc = getReactorController().getCoolantContainer();
    return cc.canDrain(getConnectedTank(), fluid);
  }

  private static FluidTankInfo[] emptyTankArray = new FluidTankInfo[0];
 
  @Override
View Full Code Here

Examples of forestry.core.fluids.TankManager.canDrain()

  public boolean canDrain(ForgeDirection from, Fluid fluid) {
    TankManager tankManager = getTankManager();
    if (tankManager == null)
      return false;

    return tankManager.canDrain(from, fluid);
  }

  @Override
  public FluidTankInfo[] getTankInfo(ForgeDirection from) {
    TankManager tankManager = getTankManager();
View Full Code Here

Examples of net.minecraftforge.fluids.IFluidBlock.canDrain()

        return null;
      }
      if (block instanceof IFluidBlock) {
        IFluidBlock flBlock = (IFluidBlock) block;

        if (flBlock.canDrain(world, x, y, z)) {
          ItemStack stack = new ItemStack(Items.bucket);
          stack = FluidContainerRegistry.fillFluidContainer(flBlock.drain(world, x, y, z, false), stack);

          if (stack != null) {
            flBlock.drain(world, x, y, z, true);
View Full Code Here

Examples of net.minecraftforge.fluids.IFluidHandler.canDrain()

    if(!(te instanceof IFluidHandler)) {
      return false;
    }
    IFluidHandler fh = (IFluidHandler) te;
    ForgeDirection dir = ForgeDirection.getOrientation(side);
    if(!fh.canDrain(dir, EnderIO.fluidXpJuice)) {
      return false;
    }
    int currentXP = XpUtil.getPlayerXP(player);
    int nextLevelXP = XpUtil.getExperienceForLevel(player.experienceLevel + 1) + 1;
    int requiredXP = nextLevelXP - currentXP;
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.