Package crazypants.enderio.fluid

Examples of crazypants.enderio.fluid.IFluidFuel


    addTooltipForFluid(list, fluidStack.getFluid());
  }

  public static void addTooltipForFluid(List list, Fluid fluid) {
    if(fluid != null) {
      IFluidFuel fuel = FluidFuelRegister.instance.getFuel(fluid);
      if(fuel != null) {
        if(showAdvancedTooltips()) {
          list.add(Lang.localize("fuel.tooltip.heading"));
          list.add(EnumChatFormatting.ITALIC + " " + PowerDisplayUtil.formatPowerPerTick(fuel.getPowerPerCycle()));
          list.add(EnumChatFormatting.ITALIC + " " + fuel.getTotalBurningTime() + " " + Lang.localize("fuel.tooltip.burnTime"));
        } else {
          addShowDetailsTooltip(list);
        }
      } else {
        IFluidCoolant coolant = FluidFuelRegister.instance.getCoolant(fluid);
View Full Code Here


   
    IFluidCoolant cool = FluidFuelRegister.instance.getCoolant(resource.getFluid());
    if(cool != null) {
      res = getCoolantTank().fill(resource, doFill);
    } else {
      IFluidFuel f = FluidFuelRegister.instance.getFuel(resource.getFluid());
      if(f != null) {
        res = getFuelTank().fill(resource, doFill);
      }
    }   
    if(res > 0) {
View Full Code Here

  @Override
  public int getPowerUsePerTick() {
    if(getFuelTank().getFluidAmount() <= 0) {
      return 0;
    }
    IFluidFuel fuel = FluidFuelRegister.instance.getFuel(getFuelTank().getFluid());
    if(fuel == null) {
      return 0;
    }
    return fuel.getPowerPerCycle();
  }
View Full Code Here

TOP

Related Classes of crazypants.enderio.fluid.IFluidFuel

Copyright © 2018 www.massapicom. 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.