Heat Sawmill (Prodigy Tech)
Description
Wood processing machine with 1 input, 2 outputs and an optional chance for the 2nd output.
Identifier
Refer to this via any of the following:
mods.prodigytech.heat_sawmill/* Used as page default */
mods.prodigytech.heatsawmill
mods.prodigytech.heatSawmill
mods.prodigytech.HeatSawmill
Adding Recipes
Recipe Builder
Just like other recipe types, the Heat Sawmill also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.prodigytech.heat_sawmill.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires greater than or equal to 1 and less than or equal to 2.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. The time needed to perform the recipe, in ticks. Will run faster than this number when heated over 80 C. Requires greater than or equal to 1. (Default0
).groovytime(int)
float
. Sets the chance to get the 2nd output. Requires less than or equal to 1. (Default1.0f
).groovysecondaryChance(float)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orlykrast.prodigytech.common.recipe.SimpleRecipeSecondaryOutput
).groovyregister()
Example
mods.prodigytech.heat_sawmill.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:diamond'))
.time(50)
.register()
mods.prodigytech.heat_sawmill.recipeBuilder()
.input(item('minecraft:iron_ingot'))
.output(item('minecraft:coal'))
.register()
mods.prodigytech.heat_sawmill.recipeBuilder()
.input(item('minecraft:iron_block'))
.output(item('minecraft:emerald'), item('minecraft:clay'))
.register()
mods.prodigytech.heat_sawmill.recipeBuilder()
.input(item('minecraft:gold_block'))
.output(item('minecraft:emerald'), item('minecraft:nether_star'))
.secondaryChance(0.25)
.time(50)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.prodigytech.heat_sawmill.removeByInput(IIngredient)
Removes all registered recipes:
groovymods.prodigytech.heat_sawmill.removeAll()
Example
mods.prodigytech.heat_sawmill.removeByInput(ore('plankWood'))
mods.prodigytech.heat_sawmill.removeAll()
Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.prodigytech.heat_sawmill.streamRecipes()