Class FuelQualityRecipeImpl
java.lang.Object
me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
me.desht.pneumaticcraft.api.crafting.recipe.FuelQualityRecipe
me.desht.pneumaticcraft.common.recipes.other.FuelQualityRecipeImpl
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
PneumaticCraftRecipe.DummyIInventory -
Constructor Summary
ConstructorsConstructorDescriptionFuelQualityRecipeImpl(net.minecraft.resources.ResourceLocation id, FluidIngredient fuel, int airPerBucket, float burnRate) -
Method Summary
Modifier and TypeMethodDescriptionintGet the amount of compressed air (in mL) produced by burning 1000mB of this fuel in a liquid compressor, with no speed upgrades.floatGet the burn rate for this fuel.getFuel()Get the fuel for this recipenet.minecraft.world.item.crafting.RecipeSerializer<?>net.minecraft.world.item.crafting.RecipeType<?>getType()booleanmatchesFluid(net.minecraft.world.level.material.Fluid inputFluid) Does the given fluid match this recipe?voidwrite(net.minecraft.network.FriendlyByteBuf buffer) Writes this recipe to a PacketBuffer.Methods inherited from class me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
assemble, canCraftInDimensions, getId, getResultItem, isSpecial, matchesMethods 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, getToastSymbol, isIncomplete, showNotification
-
Constructor Details
-
FuelQualityRecipeImpl
public FuelQualityRecipeImpl(net.minecraft.resources.ResourceLocation id, FluidIngredient fuel, int airPerBucket, float burnRate)
-
-
Method Details
-
matchesFluid
public boolean matchesFluid(net.minecraft.world.level.material.Fluid inputFluid) Description copied from class:FuelQualityRecipeDoes the given fluid match this recipe?- Specified by:
matchesFluidin classFuelQualityRecipe- Parameters:
inputFluid- the fluid to test- Returns:
- true if it matches, false otherwise
-
getFuel
Description copied from class:FuelQualityRecipeGet the fuel for this recipe- Specified by:
getFuelin classFuelQualityRecipe- Returns:
- the fuel
-
getAirPerBucket
public int getAirPerBucket()Description copied from class:FuelQualityRecipeGet the amount of compressed air (in mL) produced by burning 1000mB of this fuel in a liquid compressor, with no speed upgrades.- Specified by:
getAirPerBucketin classFuelQualityRecipe- Returns:
- the amount of air produced by this fuel fluid
-
getBurnRate
public float getBurnRate()Description copied from class:FuelQualityRecipeGet 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.- Specified by:
getBurnRatein classFuelQualityRecipe- Returns:
- the burn rate; 1.0f is the baseline
-
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) Description copied from class:PneumaticCraftRecipeWrites this recipe to a PacketBuffer.- Specified by:
writein classPneumaticCraftRecipe- Parameters:
buffer- The buffer to write to.
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer() -
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()
-