Water Net (Better With Addons)
Description
Converts an input item into any number of output itemstacks if placed within the appropriate multiblock. The multiblock is a Water Block directly below the Netted Screen, 8 Sakura Planks around the Water Block, and 8 Slat Blocks placed around the Netted Screen.
Identifier
Refer to this via any of the following:
mods.betterwithaddons.water_net/* Used as page default */
mods.betterwithaddons.waternet
mods.betterwithaddons.waterNet
mods.betterwithaddons.WaterNetAdding Recipes
Add the given recipe to the recipe list:
groovymods.betterwithaddons.water_net.add(NetRecipe)
Recipe Builder
Just like other recipe types, the Water Net 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.betterwithaddons.water_net.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.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorbetterwithaddons.crafting.recipes.NetRecipe).groovyregister()
Example
mods.betterwithaddons.water_net.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.register()
mods.betterwithaddons.water_net.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay') * 4, item('minecraft:diamond'), item('minecraft:diamond') * 2)
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.betterwithaddons.water_net.remove(NetRecipe)Removes all recipes that match the given input:
groovymods.betterwithaddons.water_net.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.betterwithaddons.water_net.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.betterwithaddons.water_net.removeAll()
Example
mods.betterwithaddons.water_net.removeByInput(item('betterwithaddons:iron_sand'))
mods.betterwithaddons.water_net.removeByOutput(item('betterwithaddons:food_sashimi'))
mods.betterwithaddons.water_net.removeByOutput(item('betterwithaddons:food_fugu_sac'))
mods.betterwithaddons.water_net.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.betterwithaddons.water_net.streamRecipes()
