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
-
Nested Class Summary
Nested classes/interfaces inherited from class me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
PneumaticCraftRecipe.DummyIInventory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFuelQualityRecipe(net.minecraft.resources.ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptionabstract intGet the amount of compressed air (in mL) produced by burning 1000mB of this fuel in a liquid compressor, with no speed upgrades.abstract floatGet the burn rate for this fuel.abstract FluidIngredientgetFuel()Get the fuel for this recipeabstract booleanmatchesFluid(net.minecraft.world.level.material.Fluid inputFluid) Does the given fluid match this recipe?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
-
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
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
-