River Grate (Factory Tech)
Description
Slowly produces the output entries while in a river biome surrounded by water, and between y 60 and 70.
Identifier
Refer to this via any of the following:
mods.factorytech.river_grate/* Used as page default */
mods.factorytech.rivergrate
mods.factorytech.riverGrate
mods.factorytech.RiverGrate
Adding Entries
Add the given recipe to the recipe list:
groovymods.factorytech.river_grate.add(MachineRecipes.MachineRecipe<Double, ItemStack>)
Recipe Builder
Just like other recipe types, the River Grate also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.factorytech.river_grate.recipeBuilder()
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
double
. Sets the weight compared to other entries. Requires greater than or equal to 0. (Default0.0d
).groovyweight(double)
boolean
. Sets if the recipe can use stone parts. (Defaultfalse
).groovyallowStoneParts() allowStoneParts(boolean)
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
ordalapo.factech.auxiliary.MachineRecipes$MachineRecipe<java.lang.Double, net.minecraft.item.ItemStack>
).groovyregister()
Example
mods.factorytech.river_grate.recipeBuilder()
.output(item('minecraft:diamond'))
.weight(10)
.register()
mods.factorytech.river_grate.recipeBuilder()
.output(item('minecraft:clay'))
.allowStoneParts()
.weight(30)
.register()
Removing Entries
Removes the given recipe from the recipe list:
groovymods.factorytech.river_grate.remove(MachineRecipes.MachineRecipe<Double, ItemStack>)
Removes all recipes that match the given output:
groovymods.factorytech.river_grate.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.factorytech.river_grate.removeAll()
Example
mods.factorytech.river_grate.removeByOutput(item('minecraft:fish'))
mods.factorytech.river_grate.removeAll()
Getting the value of entries
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.factorytech.river_grate.streamRecipes()