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
-
Nested Class Summary
Nested classes/interfaces inherited from class me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
PneumaticCraftRecipe.DummyIInventory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThermoPlantRecipe(net.minecraft.resources.ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptionintairUsed()Get the base air used each time the processing plant produces some output.abstract floatabstract FluidIngredientabstract net.minecraft.world.item.crafting.Ingredientabstract TemperatureRangeGet the temperature range required for processing to occur.abstract net.minecraftforge.fluids.FluidStackabstract net.minecraft.world.item.ItemStackabstract floatabstract floatGet the minimum pressure required for processing to occur.doubleheatUsed(double ambientTemperature) Get the base heat used each time the processing plant produces some output.abstract booleanCheck if this recipe is exothermic, i.e.abstract booleanmatches(net.minecraftforge.fluids.FluidStack inputFluid, net.minecraft.world.item.ItemStack inputItem) Check if this recipe matches the given input fluid and item.Methods inherited from class me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
assemble, canCraftInDimensions, getId, getResultItem, isSpecial, matches, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getSerializer, getToastSymbol, getType, isIncomplete, showNotification
-
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 fluidinputItem- the input item- Returns:
- true if this recipe matches
-
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; seeisExothermic().- 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
-
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.
-