Class ThermoPlantRecipe

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

public abstract class ThermoPlantRecipe extends PneumaticCraftRecipe
  • Constructor Details

    • ThermoPlantRecipe

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

    • matches

      public abstract boolean matches(net.minecraftforge.fluids.FluidStack inputFluid, net.minecraft.world.item.ItemStack inputItem)
      Check if this recipe matches the given input fluid and item. This does not take any required temperature and pressure into account. It will also match if the input fluid matches but is insufficient.
      Parameters:
      inputFluid - the input fluid
      inputItem - the input item
      Returns:
      true if this recipe matches
    • getOperatingTemperature

      public abstract TemperatureRange getOperatingTemperature()
      Get the temperature range required for processing to occur.
      Returns:
      temperature range, in degrees Kelvin.
    • getRequiredPressure

      public abstract float getRequiredPressure()
      Get the minimum pressure required for processing to occur.
      Returns:
      pressure, in bar.
    • heatUsed

      public double heatUsed(double ambientTemperature)
      Get the base heat used each time the processing plant produces some output. This value will be subtracted from the machine's current heat. This could be negative if the recipe is an exothermic recipe, i.e. it produces heat; see isExothermic().
      Parameters:
      ambientTemperature - the machine's ambient temperature
      Returns:
      heat used
    • airUsed

      public int airUsed()
      Get the base air used each time the processing plant produces some output. By default, this is 50mL of air per bar of pressure required.
      Returns:
      air used
    • getInputItem

      public abstract net.minecraft.world.item.crafting.Ingredient getInputItem()
    • getInputFluid

      public abstract FluidIngredient getInputFluid()
    • getOutputFluid

      public abstract net.minecraftforge.fluids.FluidStack getOutputFluid()
    • getOutputItem

      public abstract net.minecraft.world.item.ItemStack getOutputItem()
    • getRecipeSpeed

      public abstract float getRecipeSpeed()
    • getAirUseMultiplier

      public abstract float getAirUseMultiplier()
    • isExothermic

      public abstract boolean isExothermic()
      Check if this recipe is exothermic, i.e. produces heat rather than requiring it. Such recipes generally have a maximum temperature defined, instead of (or as well as) a minimum temperature.
      Returns:
      true if this is an exothermic recipe.