Class FuelQualityRecipe

java.lang.Object
me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
me.desht.pneumaticcraft.api.crafting.recipe.FuelQualityRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
Direct Known Subclasses:
FuelQualityRecipeImpl

public abstract class FuelQualityRecipe extends PneumaticCraftRecipe
  • Constructor Details

    • FuelQualityRecipe

      protected FuelQualityRecipe(net.minecraft.resources.ResourceLocation id)
  • Method Details

    • matchesFluid

      public abstract boolean matchesFluid(net.minecraft.world.level.material.Fluid inputFluid)
      Does the given fluid match this recipe?
      Parameters:
      inputFluid - the fluid to test
      Returns:
      true if it matches, false otherwise
    • getFuel

      public abstract FluidIngredient getFuel()
      Get the fuel for this recipe
      Returns:
      the fuel
    • getAirPerBucket

      public abstract int getAirPerBucket()
      Get the amount of compressed air (in mL) produced by burning 1000mB of this fuel in a liquid compressor, with no speed upgrades.
      Returns:
      the amount of air produced by this fuel fluid
    • getBurnRate

      public abstract float getBurnRate()
      Get the burn rate for this fuel. Burn rate affects the speed at which the fuel is consumed (and compressed air produced), without affecting the overall quantity of air produced.
      Returns:
      the burn rate; 1.0f is the baseline