@Override
  public boolean canFill(ForgeDirection from, Fluid fluid) {

    if ((fluid == null)) {
      return true;
    } else if (fluid.getBlock() == Blocks.lava || fluid == ModFluids.ActiveLava) {
      return true;
    }

    return false;
  }
Пример #2
0
 public static int getStillMetadata(Fluid fluid) {
   if (fluid != null && fluid.getBlock() instanceof BlockFluidFinite) return 7;
   else return 0;
 }
 @Override
 public boolean canDrain(ForgeDirection from, Fluid fluid) {
   return fluid == null || fluid.getBlock() == ModBlocks.blockActiveLava;
 }