Drying Basin (Integrated Dynamics)
Description
Takes either an item or fluid input and gives either an item or fluid output after a duration.
Identifier
Refer to this via any of the following:
mods.id.drying_basin
mods.id.dryingbasin
mods.id.dryingBasin
mods.id.DryingBasin
mods.integrateddynamics.drying_basin/* Used as page default */
mods.integrateddynamics.dryingbasin
mods.integrateddynamics.dryingBasin
mods.integrateddynamics.DryingBasin
Adding Recipes
Recipe Builder
Just like other recipe types, the Drying Basin also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.integrateddynamics.drying_basin.recipeBuilder()
boolean
. Sets if the recipe is added to the basic (Drying Basin) machine. (Defaulttrue
).groovybasic() basic(boolean)
int
. Sets the time in ticks the recipe takes to process. (Default10
).groovyduration(int)
boolean
. Sets if the recipe is added to the mechanical (Mechanical Drying Basin) machine. (Defaultfalse
).groovymechanical() mechanical(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
ororg.cyclops.cyclopscore.recipe.custom.api.IRecipe<org.cyclops.cyclopscore.recipe.custom.component.IngredientAndFluidStackRecipeComponent, org.cyclops.cyclopscore.recipe.custom.component.IngredientAndFluidStackRecipeComponent, org.cyclops.cyclopscore.recipe.custom.component.DurationRecipeProperties>
).groovyregister()
Example
mods.integrateddynamics.drying_basin.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.fluidInput(fluid('water') * 500)
.fluidOutput(fluid('lava') * 2000)
.mechanical()
.duration(5)
.register()
mods.integrateddynamics.drying_basin.recipeBuilder()
.output(item('minecraft:clay'))
.fluidInput(fluid('water') * 2000)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.integrateddynamics.drying_basin.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.integrateddynamics.drying_basin.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.integrateddynamics.drying_basin.removeAll()
Example
mods.integrateddynamics.drying_basin.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.integrateddynamics.drying_basin.streamRecipes()