Class ThermoPlantRecipeImpl

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

public class ThermoPlantRecipeImpl extends ThermoPlantRecipe
  • Constructor Details

    • ThermoPlantRecipeImpl

      public ThermoPlantRecipeImpl(net.minecraft.resources.ResourceLocation id, @Nonnull FluidIngredient inputFluid, @Nonnull net.minecraft.world.item.crafting.Ingredient inputItem, net.minecraftforge.fluids.FluidStack outputFluid, net.minecraft.world.item.ItemStack outputItem, TemperatureRange operatingTemperature, float requiredPressure, float recipeSpeed, float airUseMultiplier, boolean exothermic)
  • Method Details

    • matches

      public boolean matches(net.minecraftforge.fluids.FluidStack fluidStack, @Nonnull net.minecraft.world.item.ItemStack itemStack)
      Description copied from class: ThermoPlantRecipe
      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.
      Specified by:
      matches in class ThermoPlantRecipe
      Parameters:
      fluidStack - the input fluid
      itemStack - the input item
      Returns:
      true if this recipe matches
    • getOperatingTemperature

      public TemperatureRange getOperatingTemperature()
      Description copied from class: ThermoPlantRecipe
      Get the temperature range required for processing to occur.
      Specified by:
      getOperatingTemperature in class ThermoPlantRecipe
      Returns:
      temperature range, in degrees Kelvin.
    • getRequiredPressure

      public float getRequiredPressure()
      Description copied from class: ThermoPlantRecipe
      Get the minimum pressure required for processing to occur.
      Specified by:
      getRequiredPressure in class ThermoPlantRecipe
      Returns:
      pressure, in bar.
    • getInputFluid

      public FluidIngredient getInputFluid()
      Specified by:
      getInputFluid in class ThermoPlantRecipe
    • getInputItem

      @Nonnull public net.minecraft.world.item.crafting.Ingredient getInputItem()
      Specified by:
      getInputItem in class ThermoPlantRecipe
    • getOutputFluid

      public net.minecraftforge.fluids.FluidStack getOutputFluid()
      Specified by:
      getOutputFluid in class ThermoPlantRecipe
    • getOutputItem

      public net.minecraft.world.item.ItemStack getOutputItem()
      Specified by:
      getOutputItem in class ThermoPlantRecipe
    • isExothermic

      public boolean isExothermic()
      Description copied from class: ThermoPlantRecipe
      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.
      Specified by:
      isExothermic in class ThermoPlantRecipe
      Returns:
      true if this is an exothermic recipe.
    • getRecipeSpeed

      public float getRecipeSpeed()
      Specified by:
      getRecipeSpeed in class ThermoPlantRecipe
    • getAirUseMultiplier

      public float getAirUseMultiplier()
      Specified by:
      getAirUseMultiplier in class ThermoPlantRecipe
    • 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()
    • getGroup

      public String getGroup()
    • getToastSymbol

      public net.minecraft.world.item.ItemStack getToastSymbol()