Class FuelQualityRecipeImpl

All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>

public class FuelQualityRecipeImpl extends FuelQualityRecipe
  • 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: FuelQualityRecipe
      Does the given fluid match this recipe?
      Specified by:
      matchesFluid in class FuelQualityRecipe
      Parameters:
      inputFluid - the fluid to test
      Returns:
      true if it matches, false otherwise
    • getFuel

      public FluidIngredient getFuel()
      Description copied from class: FuelQualityRecipe
      Get the fuel for this recipe
      Specified by:
      getFuel in class FuelQualityRecipe
      Returns:
      the fuel
    • getAirPerBucket

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

      public float getBurnRate()
      Description copied from class: FuelQualityRecipe
      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.
      Specified by:
      getBurnRate in class FuelQualityRecipe
      Returns:
      the burn rate; 1.0f is the baseline
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buffer)
      Description copied from class: PneumaticCraftRecipe
      Writes this recipe to a PacketBuffer.
      Specified by:
      write in class PneumaticCraftRecipe
      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()