Mechanical 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.mechanical_drying_basin
mods.id.mechanicaldryingbasin
mods.id.mechanicalDryingBasin
mods.id.MechanicalDryingBasin
mods.integrateddynamics.mechanical_drying_basin/* Used as page default */
mods.integrateddynamics.mechanicaldryingbasin
mods.integrateddynamics.mechanicalDryingBasin
mods.integrateddynamics.MechanicalDryingBasin
Adding Recipes
Recipe Builder
Just like other recipe types, the Mechanical Drying Basin also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.integrateddynamics.mechanical_drying_basin.recipeBuilder()
boolean
. Sets if the recipe is added to the basic (Drying Basin) machine. (Defaultfalse
).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. (Defaulttrue
).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.mechanical_drying_basin.recipeBuilder()
.input(item('minecraft:diamond'))
.fluidInput(fluid('water') * 50)
.fluidOutput(fluid('lava') * 20000)
.duration(300)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.integrateddynamics.mechanical_drying_basin.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.integrateddynamics.mechanical_drying_basin.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.integrateddynamics.mechanical_drying_basin.removeAll()
Example
mods.integrateddynamics.mechanical_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.mechanical_drying_basin.streamRecipes()