Crab Pot Filter Silt (The Betweenlands)
Description
Converts an input item into an output itemstack when a Silt Crab is placed inside a Crab Pot Filter.
Identifier
Refer to this via any of the following:
mods.betweenlands.crab_pot_filter_silt
mods.betweenlands.crabpotfiltersilt
mods.betweenlands.crabPotFilterSilt
mods.betweenlands.CrabPotFilterSilt
mods.thebetweenlands.crab_pot_filter_silt/* Used as page default */
mods.thebetweenlands.crabpotfiltersilt
mods.thebetweenlands.crabPotFilterSilt
mods.thebetweenlands.CrabPotFilterSilt
Adding Recipes
Add the given recipe to the recipe list:
groovymods.thebetweenlands.crab_pot_filter_silt.add(ICrabPotFilterRecipeSilt)
Recipe Builder
Just like other recipe types, the Crab Pot Filter Silt also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.thebetweenlands.crab_pot_filter_silt.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 exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
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
orthebetweenlands.api.recipes.ICrabPotFilterRecipeSilt
).groovyregister()
Example
mods.thebetweenlands.crab_pot_filter_silt.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.register()
mods.thebetweenlands.crab_pot_filter_silt.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.thebetweenlands.crab_pot_filter_silt.remove(ICrabPotFilterRecipeSilt)
Removes all recipes that match the given input:
groovymods.thebetweenlands.crab_pot_filter_silt.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.thebetweenlands.crab_pot_filter_silt.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.thebetweenlands.crab_pot_filter_silt.removeAll()
Example
mods.thebetweenlands.crab_pot_filter_silt.removeByInput(item('thebetweenlands:mud'))
mods.thebetweenlands.crab_pot_filter_silt.removeByOutput(item('thebetweenlands:mud'))
mods.thebetweenlands.crab_pot_filter_silt.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.thebetweenlands.crab_pot_filter_silt.streamRecipes()