Class ThermoPlantRecipeImpl
java.lang.Object
me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
me.desht.pneumaticcraft.api.crafting.recipe.ThermoPlantRecipe
me.desht.pneumaticcraft.common.recipes.machine.ThermoPlantRecipeImpl
- 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
ConstructorsConstructorDescriptionThermoPlantRecipeImpl(net.minecraft.resources.ResourceLocation id, FluidIngredient inputFluid, 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 Summary
Modifier and TypeMethodDescriptionfloatgetGroup()net.minecraft.world.item.crafting.IngredientGet the temperature range required for processing to occur.net.minecraftforge.fluids.FluidStacknet.minecraft.world.item.ItemStackfloatfloatGet the minimum pressure required for processing to occur.net.minecraft.world.item.crafting.RecipeSerializer<?>net.minecraft.world.item.ItemStacknet.minecraft.world.item.crafting.RecipeType<?>getType()booleanCheck if this recipe is exothermic, i.e.booleanmatches(net.minecraftforge.fluids.FluidStack fluidStack, net.minecraft.world.item.ItemStack itemStack) Check if this recipe matches the given input fluid and item.voidwrite(net.minecraft.network.FriendlyByteBuf buffer) Writes this recipe to a PacketBuffer.Methods inherited from class me.desht.pneumaticcraft.api.crafting.recipe.ThermoPlantRecipe
airUsed, heatUsedMethods 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
getIngredients, getRemainingItems, isIncomplete, showNotification
-
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:ThermoPlantRecipeCheck 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:
matchesin classThermoPlantRecipe- Parameters:
fluidStack- the input fluiditemStack- the input item- Returns:
- true if this recipe matches
-
getOperatingTemperature
Description copied from class:ThermoPlantRecipeGet the temperature range required for processing to occur.- Specified by:
getOperatingTemperaturein classThermoPlantRecipe- Returns:
- temperature range, in degrees Kelvin.
-
getRequiredPressure
public float getRequiredPressure()Description copied from class:ThermoPlantRecipeGet the minimum pressure required for processing to occur.- Specified by:
getRequiredPressurein classThermoPlantRecipe- Returns:
- pressure, in bar.
-
getInputFluid
- Specified by:
getInputFluidin classThermoPlantRecipe
-
getInputItem
@Nonnull public net.minecraft.world.item.crafting.Ingredient getInputItem()- Specified by:
getInputItemin classThermoPlantRecipe
-
getOutputFluid
public net.minecraftforge.fluids.FluidStack getOutputFluid()- Specified by:
getOutputFluidin classThermoPlantRecipe
-
getOutputItem
public net.minecraft.world.item.ItemStack getOutputItem()- Specified by:
getOutputItemin classThermoPlantRecipe
-
isExothermic
public boolean isExothermic()Description copied from class:ThermoPlantRecipeCheck 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:
isExothermicin classThermoPlantRecipe- Returns:
- true if this is an exothermic recipe.
-
getRecipeSpeed
public float getRecipeSpeed()- Specified by:
getRecipeSpeedin classThermoPlantRecipe
-
getAirUseMultiplier
public float getAirUseMultiplier()- Specified by:
getAirUseMultiplierin classThermoPlantRecipe
-
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() -
getGroup
-
getToastSymbol
public net.minecraft.world.item.ItemStack getToastSymbol()
-