HeatRecipe

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import mods.exnihilosequentia.HeatRecipe;

Methods

Create a recipe name for the new recipe

Return Type: HeatRecipe

script.zs
HeatRecipe.create(recipeId as string) as HeatRecipe
ParameterTypeDescription
Parameter
recipeId
Type
string
Description
name of recipe

Sets the amount of heat that the given block should generate.

Return Type: HeatRecipe

script.zs
HeatRecipe.setAmount(amount as int) as HeatRecipe
ParameterTypeDescription
Parameter
amount
Type
int
Description
The amount of heat.

Sets the block that should be modified to generate heat.

Return Type: HeatRecipe

script.zs
HeatRecipe.setBlock(input as Block) as HeatRecipe
ParameterTypeDescription
Parameter
input
Type
Block
Description
Sets the block.

(Optional) Sets the state that should be used to generate heat.

Return Type: HeatRecipe

script.zs
HeatRecipe.setProperties(properties as StatePropertiesPredicate) as HeatRecipe
ParameterTypeDescription
Parameter
properties
Type
StatePropertiesPredicate
Description
Sets special properties.