Enum Class PneumaticRecipeRegistry
java.lang.Object
java.lang.Enum<PneumaticRecipeRegistry>
me.desht.pneumaticcraft.common.recipes.PneumaticRecipeRegistry
- All Implemented Interfaces:
Serializable,Comparable<PneumaticRecipeRegistry>,Constable,IPneumaticRecipeRegistry
public enum PneumaticRecipeRegistry
extends Enum<PneumaticRecipeRegistry>
implements IPneumaticRecipeRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionassemblyDrillRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output) Create a standard item drilling recipe.assemblyLaserRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output) Create a standard item lasering recipe.exothermicThermoPlantRecipe(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 speed, float airUseMultiplier) Create a standard exothermic Thermopneumatic Processing Plant recipe.explosionCraftingRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, int lossRate, net.minecraft.world.item.ItemStack... outputs) Create a basic explosion crafting recipe.static PneumaticRecipeRegistryheatFrameCoolingRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, int temperature, net.minecraft.world.item.ItemStack output) Create a standard Heat Frame cooling recipe.heatFrameCoolingRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, int temperature, net.minecraft.world.item.ItemStack output, float bonusMultiplier, float bonusLimit) Create a standard Heat Frame cooling recipe with potential output multiplier.pressureChamberRecipe(net.minecraft.resources.ResourceLocation id, List<net.minecraft.world.item.crafting.Ingredient> inputs, float pressureRequired, net.minecraft.world.item.ItemStack... outputs) Create a standard Pressure Chamber recipe.refineryRecipe(net.minecraft.resources.ResourceLocation id, FluidIngredient input, TemperatureRange operatingTemp, net.minecraftforge.fluids.FluidStack... outputs) Create a standard Refinery recipe.thermoPlantRecipe(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 airUseMultiplier, float speed) Create a standard Thermopneumatic Processing Plant recipe.static PneumaticRecipeRegistryReturns the enum constant of this class with the specified name.static PneumaticRecipeRegistry[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getInstance
-
assemblyLaserRecipe
public AssemblyRecipe assemblyLaserRecipe(net.minecraft.resources.ResourceLocation id, @Nonnull net.minecraft.world.item.crafting.Ingredient input, @Nonnull net.minecraft.world.item.ItemStack output) Description copied from interface:IPneumaticRecipeRegistryCreate a standard item lasering recipe. SeeStackedIngredientif you need a recipe taking multiples of an input item.- Specified by:
assemblyLaserRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- a unique recipe IDinput- the input ingredientoutput- the output item- Returns:
- a lasering recipe
-
assemblyDrillRecipe
public AssemblyRecipe assemblyDrillRecipe(net.minecraft.resources.ResourceLocation id, @Nonnull net.minecraft.world.item.crafting.Ingredient input, @Nonnull net.minecraft.world.item.ItemStack output) Description copied from interface:IPneumaticRecipeRegistryCreate a standard item drilling recipe. SeeStackedIngredientif you need a recipe taking multiples of an input item.- Specified by:
assemblyDrillRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- a unique recipe IDinput- the input ingredientoutput- the output item- Returns:
- a drilling recipe
-
explosionCraftingRecipe
public ExplosionCraftingRecipe explosionCraftingRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, int lossRate, net.minecraft.world.item.ItemStack... outputs) Description copied from interface:IPneumaticRecipeRegistryCreate a basic explosion crafting recipe. This uses in-world explosions to convert nearby items on the ground (in item entity form) to one or more other items. SeeStackedIngredientif you need a recipe taking multiples of an input item.- Specified by:
explosionCraftingRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- unique ID for the recipeinput- the input ingredientlossRate- the average item loss rate, as a percentageoutputs- the output items- Returns:
- a basic Explosion Crafting recipe
-
heatFrameCoolingRecipe
public HeatFrameCoolingRecipe heatFrameCoolingRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, int temperature, net.minecraft.world.item.ItemStack output, float bonusMultiplier, float bonusLimit) Description copied from interface:IPneumaticRecipeRegistryCreate a standard Heat Frame cooling recipe with potential output multiplier.- Specified by:
heatFrameCoolingRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- unique ID for the recipeinput- the input ingredienttemperature- the temperature (Kelvin) below which the cooling process occursoutput- the output itembonusMultiplier- output multiplier; chance of extra output per degree below the threshold temperaturebonusLimit- hard limit on the calculated output multiplier- Returns:
- a basic Heat Frame cooling recipe
-
heatFrameCoolingRecipe
public HeatFrameCoolingRecipe heatFrameCoolingRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient input, int temperature, net.minecraft.world.item.ItemStack output) Description copied from interface:IPneumaticRecipeRegistryCreate a standard Heat Frame cooling recipe.- Specified by:
heatFrameCoolingRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- unique ID for the recipeinput- the input ingredienttemperature- the temperature (Kelvin) below which the cooling process occursoutput- the output item- Returns:
- a basic Heat Frame cooling recipe
-
pressureChamberRecipe
public PressureChamberRecipe pressureChamberRecipe(net.minecraft.resources.ResourceLocation id, List<net.minecraft.world.item.crafting.Ingredient> inputs, float pressureRequired, net.minecraft.world.item.ItemStack... outputs) Description copied from interface:IPneumaticRecipeRegistryCreate a standard Pressure Chamber recipe. See alsoStackedIngredient, which may be helpful if you want to add a recipe taking multiples of the same input item.- Specified by:
pressureChamberRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- unique recipe IDinputs- a list of input ingredientspressureRequired- the pressure require (this is a minimum if positive, and a maximum if negative)outputs- the output item(s)- Returns:
- a pressure chamber recipe
-
refineryRecipe
public RefineryRecipe refineryRecipe(net.minecraft.resources.ResourceLocation id, FluidIngredient input, TemperatureRange operatingTemp, net.minecraftforge.fluids.FluidStack... outputs) Description copied from interface:IPneumaticRecipeRegistryCreate a standard Refinery recipe. Note that multiple recipes with the same input fluid may exist, provided that each recipe has a different number of output fluids; the Refinery will use the recipe with the largest number of outputs, limited by the number of output tanks in the Refinery multiblock.- Specified by:
refineryRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- unique ID for this recipeinput- the input fluidoperatingTemp- a temperature range required for the recipe to craftoutputs- the output fluids- Returns:
- a basic Refinery recipe
-
thermoPlantRecipe
public ThermoPlantRecipe thermoPlantRecipe(net.minecraft.resources.ResourceLocation id, @Nonnull FluidIngredient inputFluid, @Nullable net.minecraft.world.item.crafting.Ingredient inputItem, net.minecraftforge.fluids.FluidStack outputFluid, net.minecraft.world.item.ItemStack outputItem, TemperatureRange operatingTemperature, float requiredPressure, float airUseMultiplier, float speed) Description copied from interface:IPneumaticRecipeRegistryCreate a standard Thermopneumatic Processing Plant recipe. Such recipes generally have a minimum temperature requirement. At least one of the input fluid and input item must be non-empty.- Specified by:
thermoPlantRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- a unique ID for this recipeinputFluid- the input fluid, may be emptyinputItem- the input ingredient, may be emptyoutputFluid- the output fluidoutputItem- the output itemoperatingTemperature- the operating temperature rangerequiredPressure- the minimum pressure required (pass 0 if no specific pressure is required)airUseMultiplier- air usage cost factorspeed- recipe speed multiplier (smaller values mean recipe takes longer to process)- Returns:
- a Thermopneumatic Processing Plant recipe (pass
TemperatureRange.any()if no specific temperature is required)
-
exothermicThermoPlantRecipe
public ThermoPlantRecipe exothermicThermoPlantRecipe(net.minecraft.resources.ResourceLocation id, @Nonnull FluidIngredient inputFluid, @Nullable net.minecraft.world.item.crafting.Ingredient inputItem, net.minecraftforge.fluids.FluidStack outputFluid, net.minecraft.world.item.ItemStack outputItem, TemperatureRange operatingTemperature, float requiredPressure, float speed, float airUseMultiplier) Description copied from interface:IPneumaticRecipeRegistryCreate a standard exothermic Thermopneumatic Processing Plant recipe. Exothermic recipes produce heat rather than consume it. SeeThermoPlantRecipe.isExothermic(). At least one of the input fluid and input item must be non-empty.- Specified by:
exothermicThermoPlantRecipein interfaceIPneumaticRecipeRegistry- Parameters:
id- a unique ID for this recipeinputFluid- the input fluid, may be emptyinputItem- the input ingredient, may be emptyoutputFluid- the output fluidoutputItem- the output itemoperatingTemperature- the operating temperature rangerequiredPressure- the minimum pressure required (pass 0 if no specific pressure is required)speed- air usage cost factorairUseMultiplier- recipe speed multiplier (smaller values mean recipe takes longer to process)- Returns:
- a Thermopneumatic Processing Plant recipe (pass
TemperatureRange.any()if no specific temperature is required)
-