Crab Pot Filter Bubbler (The Betweenlands)
Description
Converts an input item into an output itemstack when a Bubbler Crab is placed inside a Crab Pot Filter.
Identifier
Refer to this via any of the following:
mods.betweenlands.crab_pot_filter_bubbler
mods.betweenlands.crabpotfilterbubbler
mods.betweenlands.crabPotFilterBubbler
mods.betweenlands.CrabPotFilterBubbler
mods.thebetweenlands.crab_pot_filter_bubbler/* Used as page default */
mods.thebetweenlands.crabpotfilterbubbler
mods.thebetweenlands.crabPotFilterBubbler
mods.thebetweenlands.CrabPotFilterBubbler
Adding Recipes
Add the given recipe to the recipe list:
groovymods.thebetweenlands.crab_pot_filter_bubbler.add(ICrabPotFilterRecipeBubbler)
Recipe Builder
Just like other recipe types, the Crab Pot Filter Bubbler also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.thebetweenlands.crab_pot_filter_bubbler.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.ICrabPotFilterRecipeBubbler
).groovyregister()
Example
mods.thebetweenlands.crab_pot_filter_bubbler.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.register()
mods.thebetweenlands.crab_pot_filter_bubbler.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_bubbler.remove(ICrabPotFilterRecipeBubbler)
Removes all recipes that match the given input:
groovymods.thebetweenlands.crab_pot_filter_bubbler.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.thebetweenlands.crab_pot_filter_bubbler.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.thebetweenlands.crab_pot_filter_bubbler.removeAll()
Example
mods.thebetweenlands.crab_pot_filter_bubbler.removeByInput(item('thebetweenlands:silt'))
mods.thebetweenlands.crab_pot_filter_bubbler.removeByOutput(item('thebetweenlands:swamp_dirt'))
mods.thebetweenlands.crab_pot_filter_bubbler.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_bubbler.streamRecipes()